bhook 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.26.0
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
@@ -963,6 +964,13 @@ module RuboCop::Cop::AllowedMethods
963
964
  def allowed_method?(name); end
964
965
  def allowed_methods; end
965
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
966
974
  module RuboCop::Cop::AutoCorrector
967
975
  def support_autocorrect?; end
968
976
  end
@@ -1258,11 +1266,6 @@ class RuboCop::Cop::HashTransformMethod::Autocorrection < Struct
1258
1266
  def trailing; end
1259
1267
  def trailing=(_); end
1260
1268
  end
1261
- module RuboCop::Cop::IgnoredPattern
1262
- def ignored_line?(line); end
1263
- def ignored_patterns; end
1264
- def matches_ignored_pattern?(line); end
1265
- end
1266
1269
  module RuboCop::Cop::IgnoredMethods
1267
1270
  def deprecated_key; end
1268
1271
  def ignored_method?(name); end
@@ -1288,6 +1291,7 @@ module RuboCop::Cop::LineLengthHelp
1288
1291
  def allow_uri?; end
1289
1292
  def allowed_uri_position?(line, uri_range); end
1290
1293
  def directive_on_source_line?(line_index); end
1294
+ def extend_uri_end_position(line, end_position); end
1291
1295
  def find_excessive_uri_range(line); end
1292
1296
  def ignore_cop_directives?; end
1293
1297
  def indentation_difference(line); end
@@ -1330,6 +1334,7 @@ module RuboCop::Cop::HashShorthandSyntax
1330
1334
  def enforced_shorthand_syntax; end
1331
1335
  def ignore_hash_shorthand_syntax?(pair_node); end
1332
1336
  def on_pair(node); end
1337
+ def register_offense(node, message, replacement); end
1333
1338
  def require_hash_value?(hash_key_source, node); end
1334
1339
  def require_hash_value_for_around_hash_literal?(node); end
1335
1340
  def use_element_of_hash_literal_as_receiver?(ancestor, parent); end
@@ -1652,10 +1657,11 @@ end
1652
1657
  module RuboCop::Cop::CommentsHelp
1653
1658
  def begin_pos_with_comment(node); end
1654
1659
  def buffer; end
1660
+ def contains_comments?(node); end
1655
1661
  def end_position_for(node); end
1662
+ def find_end_line(node); end
1656
1663
  def source_range_with_comment(node); end
1657
1664
  def start_line_position(node); end
1658
- include RuboCop::Cop::VisibilityHelp
1659
1665
  end
1660
1666
  module RuboCop::Cop::Utils
1661
1667
  end
@@ -1788,6 +1794,7 @@ class RuboCop::Cop::LineBreakCorrector
1788
1794
  def self.processed_source; end
1789
1795
  def self.remove_semicolon(node, corrector); end
1790
1796
  def self.semicolon(node); end
1797
+ def self.trailing_class_definition?(token, body); end
1791
1798
  extend RuboCop::Cop::Alignment
1792
1799
  extend RuboCop::Cop::TrailingBody
1793
1800
  extend RuboCop::Cop::Util
@@ -1946,8 +1953,34 @@ class RuboCop::Cop::Gemspec::DateAssignment < RuboCop::Cop::Base
1946
1953
  include RuboCop::Cop::GemspecHelp
1947
1954
  include RuboCop::Cop::RangeHelp
1948
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
1949
1983
  class RuboCop::Cop::Gemspec::DuplicatedAssignment < RuboCop::Cop::Base
1950
- def assignment_method?(method_name); end
1951
1984
  def assignment_method_declarations(param0); end
1952
1985
  def duplicated_assignment_method_nodes; end
1953
1986
  def match_block_variable_name?(receiver_name); end
@@ -2013,14 +2046,18 @@ class RuboCop::Cop::Layout::ArgumentAlignment < RuboCop::Cop::Base
2013
2046
  def arguments_or_first_arg_pairs(node); end
2014
2047
  def arguments_with_last_arg_pairs(node); end
2015
2048
  def autocorrect(corrector, node); end
2049
+ def autocorrect_incompatible_with_other_cops?; end
2016
2050
  def base_column(node, first_argument); end
2051
+ def enforce_hash_argument_with_separator?; end
2017
2052
  def fixed_indentation?; end
2018
2053
  def flattened_arguments(node); end
2054
+ def hash_argument_config; end
2019
2055
  def message(_node); end
2020
2056
  def multiple_arguments?(node); end
2021
2057
  def on_csend(node); end
2022
2058
  def on_send(node); end
2023
2059
  def target_method_lineno(node); end
2060
+ def with_first_argument_style?; end
2024
2061
  extend RuboCop::Cop::AutoCorrector
2025
2062
  include RuboCop::Cop::Alignment
2026
2063
  end
@@ -2085,6 +2122,8 @@ class RuboCop::Cop::Layout::CaseIndentation < RuboCop::Cop::Base
2085
2122
  def base_column(case_node, base); end
2086
2123
  def check_when(when_node, branch_type); end
2087
2124
  def detect_incorrect_style(when_node); end
2125
+ def end_and_last_conditional_same_line?(node); end
2126
+ def enforced_style_end?; end
2088
2127
  def incorrect_style(when_node, branch_type); end
2089
2128
  def indent_one_step?; end
2090
2129
  def indentation_width; end
@@ -2712,9 +2751,9 @@ class RuboCop::Cop::Layout::IndentationWidth < RuboCop::Cop::Base
2712
2751
  def starts_with_access_modifier?(body_node); end
2713
2752
  extend RuboCop::Cop::AutoCorrector
2714
2753
  include RuboCop::Cop::Alignment
2754
+ include RuboCop::Cop::AllowedPattern
2715
2755
  include RuboCop::Cop::CheckAssignment
2716
2756
  include RuboCop::Cop::EndKeywordAlignment
2717
- include RuboCop::Cop::IgnoredPattern
2718
2757
  include RuboCop::Cop::RangeHelp
2719
2758
  end
2720
2759
  class RuboCop::Cop::Layout::InitialIndentation < RuboCop::Cop::Base
@@ -2760,6 +2799,7 @@ end
2760
2799
  class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Base
2761
2800
  def allow_heredoc?; end
2762
2801
  def allowed_heredoc; end
2802
+ def allowed_line?(line, line_index); end
2763
2803
  def breakable_block_range(block_node); end
2764
2804
  def breakable_range; end
2765
2805
  def breakable_range=(arg0); end
@@ -2775,7 +2815,6 @@ class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Base
2775
2815
  def extract_heredocs(ast); end
2776
2816
  def heredocs; end
2777
2817
  def highlight_start(line); end
2778
- def ignored_line?(line, line_index); end
2779
2818
  def line_in_heredoc?(line_number); end
2780
2819
  def line_in_permitted_heredoc?(line_number); end
2781
2820
  def max; end
@@ -2790,8 +2829,8 @@ class RuboCop::Cop::Layout::LineLength < RuboCop::Cop::Base
2790
2829
  def register_offense(loc, line, line_index, length: nil); end
2791
2830
  def shebang?(line, line_index); end
2792
2831
  extend RuboCop::Cop::AutoCorrector
2832
+ include RuboCop::Cop::AllowedPattern
2793
2833
  include RuboCop::Cop::CheckLineBreakable
2794
- include RuboCop::Cop::IgnoredPattern
2795
2834
  include RuboCop::Cop::LineLengthHelp
2796
2835
  include RuboCop::Cop::RangeHelp
2797
2836
  end
@@ -2861,6 +2900,8 @@ class RuboCop::Cop::Layout::MultilineMethodCallIndentation < RuboCop::Cop::Base
2861
2900
  def autocorrect(corrector, node); end
2862
2901
  def base_source; end
2863
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
2864
2905
  def message(node, lhs, rhs); end
2865
2906
  def no_base_message(lhs, rhs, node); end
2866
2907
  def offending_range(node, lhs, rhs, given_style); end
@@ -3142,6 +3183,7 @@ class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < RuboCop::Cop::Base
3142
3183
  include RuboCop::Cop::RangeHelp
3143
3184
  end
3144
3185
  class RuboCop::Cop::Layout::SpaceBeforeBrackets < RuboCop::Cop::Base
3186
+ def dot_before_brackets?(node, receiver_end_pos, selector_begin_pos); end
3145
3187
  def offense_range(node, begin_pos); end
3146
3188
  def offense_range_for_assignment(node, begin_pos); end
3147
3189
  def on_send(node); end
@@ -3561,6 +3603,8 @@ class RuboCop::Cop::Lint::DuplicateRequire < RuboCop::Cop::Base
3561
3603
  def on_new_investigation; end
3562
3604
  def on_send(node); end
3563
3605
  def require_call?(param0 = nil); end
3606
+ extend RuboCop::Cop::AutoCorrector
3607
+ include RuboCop::Cop::RangeHelp
3564
3608
  end
3565
3609
  class RuboCop::Cop::Lint::DuplicateRescueException < RuboCop::Cop::Base
3566
3610
  def on_rescue(node); end
@@ -3594,6 +3638,7 @@ class RuboCop::Cop::Lint::EmptyClass < RuboCop::Cop::Base
3594
3638
  end
3595
3639
  class RuboCop::Cop::Lint::EmptyConditionalBody < RuboCop::Cop::Base
3596
3640
  def on_if(node); end
3641
+ include RuboCop::Cop::CommentsHelp
3597
3642
  end
3598
3643
  class RuboCop::Cop::Lint::EmptyEnsure < RuboCop::Cop::Base
3599
3644
  def on_ensure(node); end
@@ -3613,6 +3658,7 @@ end
3613
3658
  class RuboCop::Cop::Lint::EmptyInPattern < RuboCop::Cop::Base
3614
3659
  def on_case_match(node); end
3615
3660
  extend RuboCop::Cop::TargetRubyVersion
3661
+ include RuboCop::Cop::CommentsHelp
3616
3662
  end
3617
3663
  class RuboCop::Cop::Lint::EmptyInterpolation < RuboCop::Cop::Base
3618
3664
  def on_interpolation(begin_node); end
@@ -3621,6 +3667,7 @@ class RuboCop::Cop::Lint::EmptyInterpolation < RuboCop::Cop::Base
3621
3667
  end
3622
3668
  class RuboCop::Cop::Lint::EmptyWhen < RuboCop::Cop::Base
3623
3669
  def on_case(node); end
3670
+ include RuboCop::Cop::CommentsHelp
3624
3671
  end
3625
3672
  class RuboCop::Cop::Lint::EnsureReturn < RuboCop::Cop::Base
3626
3673
  def on_ensure(node); end
@@ -3748,6 +3795,7 @@ class RuboCop::Cop::Lint::InterpolationCheck < RuboCop::Cop::Base
3748
3795
  extend RuboCop::Cop::AutoCorrector
3749
3796
  end
3750
3797
  class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < RuboCop::Cop::Base
3798
+ def lambda_with_symbol_proc?(param0 = nil); end
3751
3799
  def on_send(node); end
3752
3800
  extend RuboCop::Cop::AutoCorrector
3753
3801
  end
@@ -4019,6 +4067,7 @@ class RuboCop::Cop::Lint::RedundantRequireStatement < RuboCop::Cop::Base
4019
4067
  def on_send(node); end
4020
4068
  def unnecessary_require_statement?(param0 = nil); end
4021
4069
  extend RuboCop::Cop::AutoCorrector
4070
+ extend RuboCop::Cop::TargetRubyVersion
4022
4071
  include RuboCop::Cop::RangeHelp
4023
4072
  end
4024
4073
  class RuboCop::Cop::Lint::RedundantSafeNavigation < RuboCop::Cop::Base
@@ -4069,6 +4118,10 @@ class RuboCop::Cop::Lint::RedundantWithObject < RuboCop::Cop::Base
4069
4118
  extend RuboCop::Cop::AutoCorrector
4070
4119
  include RuboCop::Cop::RangeHelp
4071
4120
  end
4121
+ class RuboCop::Cop::Lint::RefinementImportMethods < RuboCop::Cop::Base
4122
+ def on_send(node); end
4123
+ extend RuboCop::Cop::TargetRubyVersion
4124
+ end
4072
4125
  class RuboCop::Cop::Lint::RegexpAsCondition < RuboCop::Cop::Base
4073
4126
  def on_match_current_line(node); end
4074
4127
  extend RuboCop::Cop::AutoCorrector
@@ -4100,11 +4153,8 @@ class RuboCop::Cop::Lint::RescueType < RuboCop::Cop::Base
4100
4153
  extend RuboCop::Cop::AutoCorrector
4101
4154
  end
4102
4155
  class RuboCop::Cop::Lint::ReturnInVoidContext < RuboCop::Cop::Base
4103
- def method_name(context_node); end
4104
4156
  def non_void_context(return_node); end
4105
4157
  def on_return(return_node); end
4106
- def setter_method?(method_name); end
4107
- def void_context_method?(method_name); end
4108
4158
  end
4109
4159
  class RuboCop::Cop::Lint::SafeNavigationConsistency < RuboCop::Cop::Base
4110
4160
  def autocorrect(corrector, node); end
@@ -4121,6 +4171,7 @@ class RuboCop::Cop::Lint::SafeNavigationChain < RuboCop::Cop::Base
4121
4171
  def bad_method?(param0 = nil); end
4122
4172
  def method_chain(node); end
4123
4173
  def on_send(node); end
4174
+ extend RuboCop::Cop::TargetRubyVersion
4124
4175
  include RuboCop::Cop::NilMethods
4125
4176
  end
4126
4177
  class RuboCop::Cop::Lint::SafeNavigationWithEmpty < RuboCop::Cop::Base
@@ -4185,6 +4236,7 @@ end
4185
4236
  class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < RuboCop::Cop::Base
4186
4237
  def before_declaring_variable(variable, variable_table); end
4187
4238
  def ractor_block?(param0 = nil); end
4239
+ def same_conditions_node_different_branch?(variable, outer_local_variable); end
4188
4240
  def self.joining_forces; end
4189
4241
  end
4190
4242
  class RuboCop::Cop::Lint::StructNewOverride < RuboCop::Cop::Base
@@ -4305,7 +4357,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < RuboCop::Cop::Base
4305
4357
  def on_while_post(node); end
4306
4358
  def preceded_by_continue_statement?(break_statement); end
4307
4359
  def statements(node); end
4308
- include RuboCop::Cop::IgnoredPattern
4360
+ include RuboCop::Cop::AllowedPattern
4309
4361
  end
4310
4362
  class RuboCop::Cop::Lint::UnusedBlockArgument < RuboCop::Cop::Base
4311
4363
  def allow_unused_keyword_arguments?; end
@@ -4382,9 +4434,6 @@ class RuboCop::Cop::Lint::UselessAssignment < RuboCop::Cop::Base
4382
4434
  def similar_name_message(variable); end
4383
4435
  def variable_like_method_invocation?(node); end
4384
4436
  end
4385
- class RuboCop::Cop::Lint::UselessElseWithoutRescue < RuboCop::Cop::Base
4386
- def on_new_investigation; end
4387
- end
4388
4437
  class RuboCop::Cop::Lint::UselessMethodDefinition < RuboCop::Cop::Base
4389
4438
  def delegating?(node, def_node); end
4390
4439
  def on_def(node); end
@@ -4478,6 +4527,7 @@ class RuboCop::Cop::Metrics::Utils::AbcSizeCalculator
4478
4527
  include RuboCop::Cop::Metrics::Utils::RepeatedCsendDiscount
4479
4528
  end
4480
4529
  class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator
4530
+ def another_args?(node); end
4481
4531
  def build_foldable_checks(types); end
4482
4532
  def calculate; end
4483
4533
  def classlike_code_length(node); end
@@ -4494,6 +4544,8 @@ class RuboCop::Cop::Metrics::Utils::CodeLengthCalculator
4494
4544
  def line_numbers_of_inner_nodes(node, *types); end
4495
4545
  def namespace_module?(node); end
4496
4546
  def normalize_foldable_types(types); end
4547
+ def omit_length(descendant); end
4548
+ def parenthesized?(node); end
4497
4549
  extend RuboCop::AST::NodePattern::Macros
4498
4550
  include RuboCop::Cop::Util
4499
4551
  end
@@ -4705,8 +4757,8 @@ class RuboCop::Cop::Naming::MethodName < RuboCop::Cop::Base
4705
4757
  def range_position(node); end
4706
4758
  def str_name(param0 = nil); end
4707
4759
  def sym_name(param0 = nil); end
4760
+ include RuboCop::Cop::AllowedPattern
4708
4761
  include RuboCop::Cop::ConfigurableNaming
4709
- include RuboCop::Cop::IgnoredPattern
4710
4762
  include RuboCop::Cop::RangeHelp
4711
4763
  end
4712
4764
  class RuboCop::Cop::Naming::MethodParameterName < RuboCop::Cop::Base
@@ -4758,7 +4810,9 @@ class RuboCop::Cop::Naming::VariableName < RuboCop::Cop::Base
4758
4810
  def on_lvasgn(node); end
4759
4811
  def on_optarg(node); end
4760
4812
  def on_restarg(node); end
4813
+ def valid_name?(node, name, given_style = nil); end
4761
4814
  include RuboCop::Cop::AllowedIdentifiers
4815
+ include RuboCop::Cop::AllowedPattern
4762
4816
  include RuboCop::Cop::ConfigurableNaming
4763
4817
  end
4764
4818
  class RuboCop::Cop::Naming::VariableNumber < RuboCop::Cop::Base
@@ -4767,10 +4821,13 @@ class RuboCop::Cop::Naming::VariableNumber < RuboCop::Cop::Base
4767
4821
  def on_cvasgn(node); end
4768
4822
  def on_def(node); end
4769
4823
  def on_defs(node); end
4824
+ def on_gvasgn(node); end
4770
4825
  def on_ivasgn(node); end
4771
4826
  def on_lvasgn(node); end
4772
4827
  def on_sym(node); end
4828
+ def valid_name?(node, name, given_style = nil); end
4773
4829
  include RuboCop::Cop::AllowedIdentifiers
4830
+ include RuboCop::Cop::AllowedPattern
4774
4831
  include RuboCop::Cop::ConfigurableNumbering
4775
4832
  end
4776
4833
  module RuboCop::Cop::Style
@@ -4984,6 +5041,7 @@ class RuboCop::Cop::Style::BlockDelimiters < RuboCop::Cop::Base
4984
5041
  def special_method_proper_block_style?(node); end
4985
5042
  def whitespace_after?(range, length = nil); end
4986
5043
  def whitespace_before?(range); end
5044
+ def with_block?(node); end
4987
5045
  extend RuboCop::Cop::AutoCorrector
4988
5046
  extend RuboCop::Cop::IgnoredMethods::Config
4989
5047
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -5100,7 +5158,7 @@ class RuboCop::Cop::Style::ClassVars < RuboCop::Cop::Base
5100
5158
  def on_send(node); end
5101
5159
  end
5102
5160
  class RuboCop::Cop::Style::CollectionCompact < RuboCop::Cop::Base
5103
- def good_method_name(method_name); end
5161
+ def good_method_name(node); end
5104
5162
  def offense_range(node); end
5105
5163
  def on_send(node); end
5106
5164
  def range(begin_pos_node, end_pos_node); end
@@ -5304,6 +5362,7 @@ class RuboCop::Cop::Style::Dir < RuboCop::Cop::Base
5304
5362
  def file_keyword?(node); end
5305
5363
  def on_send(node); end
5306
5364
  extend RuboCop::Cop::AutoCorrector
5365
+ extend RuboCop::Cop::TargetRubyVersion
5307
5366
  end
5308
5367
  class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < RuboCop::Cop::Base
5309
5368
  def allowed_cops; end
@@ -5361,10 +5420,14 @@ class RuboCop::Cop::Style::DoubleCopDisableDirective < RuboCop::Cop::Base
5361
5420
  end
5362
5421
  class RuboCop::Cop::Style::DoubleNegation < RuboCop::Cop::Base
5363
5422
  def allowed_in_returns?(node); end
5423
+ def define_mehod?(node); end
5364
5424
  def double_negative?(param0 = nil); end
5425
+ def double_negative_condition_return_value?(node, last_child, conditional_node); end
5365
5426
  def end_of_method_definition?(node); end
5427
+ def find_conditional_node_from_ascendant(node); end
5366
5428
  def find_def_node_from_ascendant(node); end
5367
5429
  def find_last_child(node); end
5430
+ def find_parent_not_enumerable(node); end
5368
5431
  def on_send(node); end
5369
5432
  extend RuboCop::Cop::AutoCorrector
5370
5433
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -5486,6 +5549,11 @@ class RuboCop::Cop::Style::EndBlock < RuboCop::Cop::Base
5486
5549
  def on_postexe(node); end
5487
5550
  extend RuboCop::Cop::AutoCorrector
5488
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
5489
5557
  class RuboCop::Cop::Style::EvalWithLocation < RuboCop::Cop::Base
5490
5558
  def add_offense_for_different_line(node, line_node, line_diff); end
5491
5559
  def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end
@@ -5557,6 +5625,40 @@ class RuboCop::Cop::Style::ExponentialNotation < RuboCop::Cop::Base
5557
5625
  def scientific?(node); end
5558
5626
  include RuboCop::Cop::ConfigurableEnforcedStyle
5559
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
5560
5662
  class RuboCop::Cop::Style::FileRead < RuboCop::Cop::Base
5561
5663
  def block_read?(param0 = nil); end
5562
5664
  def evidence(node); end
@@ -5655,6 +5757,7 @@ class RuboCop::Cop::Style::FrozenStringLiteralComment < RuboCop::Cop::Base
5655
5757
  def remove_comment(corrector, node); end
5656
5758
  def unnecessary_comment_offense(processed_source); end
5657
5759
  extend RuboCop::Cop::AutoCorrector
5760
+ extend RuboCop::Cop::TargetRubyVersion
5658
5761
  include RuboCop::Cop::ConfigurableEnforcedStyle
5659
5762
  include RuboCop::Cop::FrozenStringLiteral
5660
5763
  include RuboCop::Cop::RangeHelp
@@ -5676,7 +5779,9 @@ end
5676
5779
  class RuboCop::Cop::Style::GuardClause < RuboCop::Cop::Base
5677
5780
  def accepted_form?(node, ending: nil); end
5678
5781
  def accepted_if?(node, ending); end
5782
+ def allowed_consecutive_conditionals?; end
5679
5783
  def check_ending_if(node); end
5784
+ def consecutive_conditionals?(parent, node); end
5680
5785
  def guard_clause_source(guard_clause); end
5681
5786
  def on_def(node); end
5682
5787
  def on_defs(node); end
@@ -5776,6 +5881,7 @@ class RuboCop::Cop::Style::HashTransformKeys < RuboCop::Cop::Base
5776
5881
  def on_bad_map_to_h(param0 = nil); end
5777
5882
  def on_bad_to_h(param0 = nil); end
5778
5883
  extend RuboCop::Cop::AutoCorrector
5884
+ extend RuboCop::Cop::TargetRubyVersion
5779
5885
  include RuboCop::Cop::HashTransformMethod
5780
5886
  end
5781
5887
  class RuboCop::Cop::Style::HashTransformValues < RuboCop::Cop::Base
@@ -5786,6 +5892,7 @@ class RuboCop::Cop::Style::HashTransformValues < RuboCop::Cop::Base
5786
5892
  def on_bad_map_to_h(param0 = nil); end
5787
5893
  def on_bad_to_h(param0 = nil); end
5788
5894
  extend RuboCop::Cop::AutoCorrector
5895
+ extend RuboCop::Cop::TargetRubyVersion
5789
5896
  include RuboCop::Cop::HashTransformMethod
5790
5897
  end
5791
5898
  class RuboCop::Cop::Style::IdenticalConditionalBranches < RuboCop::Cop::Base
@@ -5816,10 +5923,10 @@ class RuboCop::Cop::Style::IfInsideElse < RuboCop::Cop::Base
5816
5923
  include RuboCop::Cop::RangeHelp
5817
5924
  end
5818
5925
  class RuboCop::Cop::Style::IfUnlessModifier < RuboCop::Cop::Base
5926
+ def allowed_patterns; end
5819
5927
  def another_statement_on_same_line?(node); end
5820
5928
  def autocorrect(corrector, node); end
5821
5929
  def extract_heredoc_from(last_argument); end
5822
- def ignored_patterns; end
5823
5930
  def line_length_enabled_at_line?(line); end
5824
5931
  def named_capture_in_condition?(node); end
5825
5932
  def non_eligible_node?(node); end
@@ -5835,7 +5942,7 @@ class RuboCop::Cop::Style::IfUnlessModifier < RuboCop::Cop::Base
5835
5942
  def too_long_line_based_on_ignore_cop_directives?(range, line); end
5836
5943
  def too_long_single_line?(node); end
5837
5944
  extend RuboCop::Cop::AutoCorrector
5838
- include RuboCop::Cop::IgnoredPattern
5945
+ include RuboCop::Cop::AllowedPattern
5839
5946
  include RuboCop::Cop::LineLengthHelp
5840
5947
  include RuboCop::Cop::RangeHelp
5841
5948
  include RuboCop::Cop::StatementModifier
@@ -6007,9 +6114,9 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < RuboCop::Cop::Base
6007
6114
  def self.autocorrect_incompatible_with; end
6008
6115
  extend RuboCop::Cop::AutoCorrector
6009
6116
  extend RuboCop::Cop::IgnoredMethods::Config
6117
+ include RuboCop::Cop::AllowedPattern
6010
6118
  include RuboCop::Cop::ConfigurableEnforcedStyle
6011
6119
  include RuboCop::Cop::IgnoredMethods
6012
- include RuboCop::Cop::IgnoredPattern
6013
6120
  include RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
6014
6121
  include RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses
6015
6122
  end
@@ -6105,6 +6212,18 @@ class RuboCop::Cop::Style::RedundantFileExtensionInRequire < RuboCop::Cop::Base
6105
6212
  extend RuboCop::Cop::AutoCorrector
6106
6213
  include RuboCop::Cop::RangeHelp
6107
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
6108
6227
  class RuboCop::Cop::Style::RedundantSelfAssignment < RuboCop::Cop::Base
6109
6228
  def correction_range(node); end
6110
6229
  def method_returning_self?(method_name); end
@@ -6135,15 +6254,21 @@ class RuboCop::Cop::Style::SoleNestedConditional < RuboCop::Cop::Base
6135
6254
  def arguments_range(node); end
6136
6255
  def assigned_variables(condition); end
6137
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
6138
6259
  def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end
6139
6260
  def correct_for_comment(corrector, node, if_branch); end
6140
- def correct_for_guard_condition_style(corrector, node, if_branch, and_operator); end
6141
- 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
6142
6264
  def correct_outer_condition(corrector, condition); end
6143
- 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
6144
6268
  def on_if(node); end
6145
- def replacement_condition(and_operator, condition); end
6146
- 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
6147
6272
  def self.autocorrect_incompatible_with; end
6148
6273
  def use_variable_assignment_in_condition?(condition, if_branch); end
6149
6274
  def wrap_condition?(node); end
@@ -6158,6 +6283,16 @@ class RuboCop::Cop::Style::StaticClass < RuboCop::Cop::Base
6158
6283
  def sclass_convertible_to_module?(node); end
6159
6284
  include RuboCop::Cop::VisibilityHelp
6160
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
6161
6296
  class RuboCop::Cop::Style::MethodCalledOnDoEndBlock < RuboCop::Cop::Base
6162
6297
  def on_block(node); end
6163
6298
  def on_csend(node); end
@@ -6287,8 +6422,11 @@ class RuboCop::Cop::Style::MultilineMemoization < RuboCop::Cop::Base
6287
6422
  include RuboCop::Cop::ConfigurableEnforcedStyle
6288
6423
  end
6289
6424
  class RuboCop::Cop::Style::MultilineTernaryOperator < RuboCop::Cop::Base
6425
+ def enforce_single_line_ternary_operator?(node); end
6290
6426
  def offense?(node); end
6291
6427
  def on_if(node); end
6428
+ def replacement(node); end
6429
+ def use_assignment_method?(node); end
6292
6430
  extend RuboCop::Cop::AutoCorrector
6293
6431
  end
6294
6432
  class RuboCop::Cop::Style::MultilineWhenThen < RuboCop::Cop::Base
@@ -6545,12 +6683,22 @@ class RuboCop::Cop::Style::NumericPredicate < RuboCop::Cop::Base
6545
6683
  def parenthesized_source(node); end
6546
6684
  def predicate(param0 = nil); end
6547
6685
  def replacement(numeric, operation); end
6686
+ def replacement_supported?(operator); end
6548
6687
  def require_parentheses?(node); end
6549
6688
  extend RuboCop::Cop::AutoCorrector
6550
6689
  extend RuboCop::Cop::IgnoredMethods::Config
6551
6690
  include RuboCop::Cop::ConfigurableEnforcedStyle
6552
6691
  include RuboCop::Cop::IgnoredMethods
6553
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
6554
6702
  class RuboCop::Cop::Style::OneLineConditional < RuboCop::Cop::Base
6555
6703
  def always_multiline?; end
6556
6704
  def autocorrect(corrector, node); end
@@ -6743,6 +6891,7 @@ class RuboCop::Cop::Style::RaiseArgs < RuboCop::Cop::Base
6743
6891
  def correction_exploded_to_compact(node); end
6744
6892
  def on_send(node); end
6745
6893
  def requires_parens?(parent); end
6894
+ def use_new_method?(first_arg); end
6746
6895
  extend RuboCop::Cop::AutoCorrector
6747
6896
  include RuboCop::Cop::ConfigurableEnforcedStyle
6748
6897
  end
@@ -6770,11 +6919,13 @@ class RuboCop::Cop::Style::RedundantArgument < RuboCop::Cop::Base
6770
6919
  include RuboCop::Cop::RangeHelp
6771
6920
  end
6772
6921
  class RuboCop::Cop::Style::RedundantBegin < RuboCop::Cop::Base
6922
+ def allowable_kwbegin?(node); end
6773
6923
  def begin_block_has_multiline_statements?(node); end
6774
6924
  def condition_range(node); end
6775
6925
  def contain_rescue_or_ensure?(node); end
6776
6926
  def correct_modifier_form_after_multiline_begin_block(corrector, node); end
6777
6927
  def empty_begin?(node); end
6928
+ def offensive_kwbegins(param0); end
6778
6929
  def on_block(node); end
6779
6930
  def on_def(node); end
6780
6931
  def on_defs(node); end
@@ -6796,14 +6947,25 @@ class RuboCop::Cop::Style::RedundantCapitalW < RuboCop::Cop::Base
6796
6947
  include RuboCop::Cop::PercentLiteral
6797
6948
  end
6798
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
6799
6953
  def correct_ternary(corrector, node); end
6800
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
6801
6958
  def make_ternary_form(node); end
6802
6959
  def message(node); end
6803
6960
  def offense?(node); end
6804
6961
  def on_if(node); end
6805
6962
  def range_of_offense(node); end
6963
+ def redundant_condition?(node); end
6964
+ def require_braces?(node); end
6806
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
6807
6969
  def use_hash_key_assignment?(else_branch); end
6808
6970
  def use_if_branch?(else_branch); end
6809
6971
  def without_argument_parentheses_method?(node); end
@@ -6912,6 +7074,7 @@ class RuboCop::Cop::Style::RedundantRegexpCharacterClass < RuboCop::Cop::Base
6912
7074
  def backslash_b?(elem); end
6913
7075
  def each_redundant_character_class(node); end
6914
7076
  def each_single_element_character_class(node); end
7077
+ def multiple_codepoins?(expression); end
6915
7078
  def on_regexp(node); end
6916
7079
  def redundant_single_element_character_class?(node, char_class); end
6917
7080
  def requires_escape_outside_char_class?(elem); end
@@ -7036,7 +7199,7 @@ class RuboCop::Cop::Style::RescueModifier < RuboCop::Cop::Base
7036
7199
  include RuboCop::Cop::RescueNode
7037
7200
  end
7038
7201
  class RuboCop::Cop::Style::RescueStandardError < RuboCop::Cop::Base
7039
- def offense_for_exlicit_enforced_style(node); end
7202
+ def offense_for_explicit_enforced_style(node); end
7040
7203
  def offense_for_implicit_enforced_style(node, error); end
7041
7204
  def on_resbody(node); end
7042
7205
  def rescue_standard_error?(param0 = nil); end
@@ -7063,7 +7226,7 @@ class RuboCop::Cop::Style::SafeNavigation < RuboCop::Cop::Base
7063
7226
  def allowed_if_condition?(node); end
7064
7227
  def autocorrect(corrector, node); end
7065
7228
  def begin_range(node, method_call); end
7066
- def chain_size(method_chain, method); end
7229
+ def chain_length(method_chain, method); end
7067
7230
  def check_node(node); end
7068
7231
  def comments(node); end
7069
7232
  def end_range(node, method_call); end
@@ -7073,6 +7236,7 @@ class RuboCop::Cop::Style::SafeNavigation < RuboCop::Cop::Base
7073
7236
  def extract_parts_from_if(node); end
7074
7237
  def find_matching_receiver_invocation(method_chain, checked_variable); end
7075
7238
  def handle_comments(corrector, node, method_call); end
7239
+ def max_chain_length; end
7076
7240
  def method_call(node); end
7077
7241
  def method_called?(send_node); end
7078
7242
  def modifier_if_safe_navigation_candidate(param0 = nil); end
@@ -7106,6 +7270,7 @@ end
7106
7270
  class RuboCop::Cop::Style::SelectByRegexp < RuboCop::Cop::Base
7107
7271
  def calls_lvar?(param0 = nil, param1); end
7108
7272
  def creates_hash?(param0 = nil); end
7273
+ def env_const?(param0 = nil); end
7109
7274
  def extract_send_node(block_node); end
7110
7275
  def find_regexp(node, block); end
7111
7276
  def match_predicate_without_receiver?(node); end
@@ -7211,8 +7376,10 @@ class RuboCop::Cop::Style::SpecialGlobalVars < RuboCop::Cop::Base
7211
7376
  def format_english_message(global_var); end
7212
7377
  def format_list(items); end
7213
7378
  def format_message(english, regular, global); end
7379
+ def matching_styles(global); end
7214
7380
  def message(global_var); end
7215
7381
  def on_gvar(node); end
7382
+ def on_new_investigation; end
7216
7383
  def preferred_names(global); end
7217
7384
  def replacement(node, global_var); end
7218
7385
  def should_require_english?(global_var); end
@@ -7347,6 +7514,7 @@ class RuboCop::Cop::Style::SymbolArray < RuboCop::Cop::Base
7347
7514
  def symbols_contain_spaces?(node); end
7348
7515
  def to_symbol_literal(string); end
7349
7516
  extend RuboCop::Cop::AutoCorrector
7517
+ extend RuboCop::Cop::TargetRubyVersion
7350
7518
  include RuboCop::Cop::ArrayMinSize
7351
7519
  include RuboCop::Cop::ArraySyntax
7352
7520
  include RuboCop::Cop::ConfigurableEnforcedStyle
@@ -7357,7 +7525,8 @@ class RuboCop::Cop::Style::SymbolLiteral < RuboCop::Cop::Base
7357
7525
  extend RuboCop::Cop::AutoCorrector
7358
7526
  end
7359
7527
  class RuboCop::Cop::Style::SymbolProc < RuboCop::Cop::Base
7360
- def allow_if_method_has_argument?(node); end
7528
+ def allow_comments?; end
7529
+ def allow_if_method_has_argument?(send_node); end
7361
7530
  def autocorrect(corrector, node); end
7362
7531
  def autocorrect_with_args(corrector, node, args, method_name); end
7363
7532
  def autocorrect_without_args(corrector, node); end
@@ -7373,6 +7542,7 @@ class RuboCop::Cop::Style::SymbolProc < RuboCop::Cop::Base
7373
7542
  def symbol_proc_receiver?(param0 = nil); end
7374
7543
  extend RuboCop::Cop::AutoCorrector
7375
7544
  extend RuboCop::Cop::IgnoredMethods::Config
7545
+ include RuboCop::Cop::CommentsHelp
7376
7546
  include RuboCop::Cop::IgnoredMethods
7377
7547
  include RuboCop::Cop::RangeHelp
7378
7548
  end
@@ -7486,11 +7656,11 @@ class RuboCop::Cop::Style::TrivialAccessors < RuboCop::Cop::Base
7486
7656
  def allowed_method_name?(node); end
7487
7657
  def allowed_method_names; end
7488
7658
  def allowed_reader?(node); end
7489
- def allowed_writer?(method_name); end
7659
+ def allowed_writer?(node); end
7490
7660
  def autocorrect(corrector, node); end
7491
7661
  def autocorrect_class(corrector, node); end
7492
7662
  def autocorrect_instance(corrector, node); end
7493
- def dsl_writer?(method_name); end
7663
+ def dsl_writer?(node); end
7494
7664
  def exact_name_match?; end
7495
7665
  def ignore_class_methods?; end
7496
7666
  def in_module_or_instance_eval?(node); end
@@ -7529,6 +7699,7 @@ class RuboCop::Cop::Style::UnpackFirst < RuboCop::Cop::Base
7529
7699
  def on_send(node); end
7530
7700
  def unpack_and_first_element?(param0 = nil); end
7531
7701
  extend RuboCop::Cop::AutoCorrector
7702
+ extend RuboCop::Cop::TargetRubyVersion
7532
7703
  end
7533
7704
  class RuboCop::Cop::Style::VariableInterpolation < RuboCop::Cop::Base
7534
7705
  def message(range); end
@@ -7600,6 +7771,18 @@ class RuboCop::Cop::Style::ZeroLengthPredicate < RuboCop::Cop::Base
7600
7771
  end
7601
7772
  module RuboCop::Cop::Security
7602
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
7603
7786
  class RuboCop::Cop::Security::Eval < RuboCop::Cop::Base
7604
7787
  def eval?(param0 = nil); end
7605
7788
  def on_send(node); end
@@ -7861,6 +8044,22 @@ class RuboCop::Formatter::JUnitFormatter < RuboCop::Formatter::BaseFormatter
7861
8044
  def relevant_for_output?(options, target_offenses); end
7862
8045
  def reset_count; end
7863
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
7864
8063
  class RuboCop::Formatter::OffenseCountFormatter < RuboCop::Formatter::BaseFormatter
7865
8064
  def file_finished(_file, offenses); end
7866
8065
  def finished(_inspected_files); end
@@ -8054,6 +8253,8 @@ class RuboCop::ConfigLoader
8054
8253
  def self.ignore_parent_exclusion; end
8055
8254
  def self.ignore_parent_exclusion=(arg0); end
8056
8255
  def self.ignore_parent_exclusion?; end
8256
+ def self.ignore_unrecognized_cops; end
8257
+ def self.ignore_unrecognized_cops=(arg0); end
8057
8258
  def self.load_file(file, check: nil); end
8058
8259
  def self.load_yaml_configuration(absolute_path); end
8059
8260
  def self.loaded_features; end
@@ -8169,6 +8370,7 @@ class RuboCop::ConfigValidator
8169
8370
  def each_invalid_parameter(cop_name); end
8170
8371
  def for_all_cops(*args, &block); end
8171
8372
  def initialize(config); end
8373
+ def list_unknown_cops(invalid_cop_names); end
8172
8374
  def msg_not_boolean(parent, key, value); end
8173
8375
  def reject_conflicting_safe_settings; end
8174
8376
  def reject_mutually_exclusive_defaults; end
@@ -8289,6 +8491,8 @@ class RuboCop::MagicComment
8289
8491
  def shareable_constant_value; end
8290
8492
  def shareable_constant_value_specified?; end
8291
8493
  def specified?(value); end
8494
+ def typed; end
8495
+ def typed_specified?; end
8292
8496
  def valid?; end
8293
8497
  def valid_literal_value?; end
8294
8498
  def valid_shareable_constant_value?; end
@@ -8302,9 +8506,11 @@ end
8302
8506
  class RuboCop::MagicComment::EmacsComment < RuboCop::MagicComment::EditorComment
8303
8507
  def extract_frozen_string_literal; end
8304
8508
  def extract_shareable_constant_value; end
8509
+ def extract_typed; end
8305
8510
  end
8306
8511
  class RuboCop::MagicComment::VimComment < RuboCop::MagicComment::EditorComment
8307
8512
  def encoding; end
8513
+ def extract_typed; end
8308
8514
  def frozen_string_literal; end
8309
8515
  def shareable_constant_value; end
8310
8516
  end
@@ -8312,6 +8518,7 @@ class RuboCop::MagicComment::SimpleComment < RuboCop::MagicComment
8312
8518
  def encoding; end
8313
8519
  def extract_frozen_string_literal; end
8314
8520
  def extract_shareable_constant_value; end
8521
+ def extract_typed; end
8315
8522
  def without(type); end
8316
8523
  end
8317
8524
  class RuboCop::ResultCache
@@ -8351,6 +8558,7 @@ class RuboCop::Runner
8351
8558
  def check_for_infinite_loop(processed_source, offenses_by_iteration); end
8352
8559
  def check_for_redundant_disables?(source); end
8353
8560
  def considered_failure?(offense); end
8561
+ def default_config(cop_name); end
8354
8562
  def do_inspection_loop(file); end
8355
8563
  def each_inspected_file(files); end
8356
8564
  def errors; end
@@ -8368,9 +8576,11 @@ class RuboCop::Runner
8368
8576
  def inspect_files(files); end
8369
8577
  def iterate_until_no_changes(source, offenses_by_iteration); end
8370
8578
  def list_files(paths); end
8579
+ def mark_as_safe_by_config?(config); end
8371
8580
  def minimum_severity_to_fail; end
8372
8581
  def mobilize_team(processed_source); end
8373
8582
  def mobilized_cop_classes(config); end
8583
+ def offenses_to_report(offenses); end
8374
8584
  def process_file(file); end
8375
8585
  def qualify_option_cop_names; end
8376
8586
  def redundant_cop_disable_directive(file); end
@@ -8378,6 +8588,7 @@ class RuboCop::Runner
8378
8588
  def save_in_cache(cache, offenses); end
8379
8589
  def standby_team(config); end
8380
8590
  def style_guide_cops_only?(config); end
8591
+ def supports_safe_auto_correct?(offense); end
8381
8592
  def team_for_redundant_disables(file, offenses, source); end
8382
8593
  def warm_cache(target_files); end
8383
8594
  def warnings; end
@@ -8431,6 +8642,8 @@ class RuboCop::CLI::Command::AutoGenerateConfig < RuboCop::CLI::Command::Base
8431
8642
  def line_length_enabled?(config); end
8432
8643
  def max_line_length(config); end
8433
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
8434
8647
  def reset_config_and_auto_gen_file; end
8435
8648
  def run; end
8436
8649
  def run_all_cops(line_length_contents); end
@@ -8504,6 +8717,7 @@ class RuboCop::Options
8504
8717
  def args_from_env; end
8505
8718
  def args_from_file; end
8506
8719
  def define_options; end
8720
+ def handle_deprecated_option(old_option, new_option); end
8507
8721
  def initialize; end
8508
8722
  def long_opt_symbol(args); end
8509
8723
  def option(opts, *args); end
@@ -8519,15 +8733,18 @@ class RuboCop::OptionsValidator
8519
8733
  def except_syntax?; end
8520
8734
  def incompatible_options; end
8521
8735
  def initialize(options); end
8736
+ def invalid_arguments_for_parallel; end
8522
8737
  def only_includes_redundant_disable?; end
8523
8738
  def self.format_message_from(name, cop_names); end
8524
8739
  def self.validate_cop_list(names); end
8525
- def validate_auto_correct; end
8526
8740
  def validate_auto_gen_config; end
8741
+ def validate_autocorrect; end
8527
8742
  def validate_cache_enabled_for_cache_root; end
8528
8743
  def validate_compatibility; end
8529
8744
  def validate_cop_options; end
8745
+ def validate_display_only_correctable_and_autocorrect; end
8530
8746
  def validate_display_only_failed; end
8747
+ def validate_display_only_failed_and_display_only_correctable; end
8531
8748
  def validate_exclude_limit_option; end
8532
8749
  end
8533
8750
  module RuboCop::OptionsHelp
@@ -8582,7 +8799,7 @@ class RuboCop::TargetRuby::BundlerLockFile < RuboCop::TargetRuby::Source
8582
8799
  def name; end
8583
8800
  end
8584
8801
  class RuboCop::TargetRuby::GemspecFile < RuboCop::TargetRuby::Source
8585
- def find_minimal_known_ruby(right_hand_side); end
8802
+ def find_default_minimal_known_ruby(right_hand_side); end
8586
8803
  def find_version; end
8587
8804
  def gem_requirement?(param0 = nil); end
8588
8805
  def gemspec_filename; end