rubocop 1.19.1 → 1.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/default.yml +86 -14
- data/lib/rubocop/config.rb +5 -0
- data/lib/rubocop/config_loader.rb +4 -2
- data/lib/rubocop/config_validator.rb +9 -1
- data/lib/rubocop/cop/base.rb +3 -3
- data/lib/rubocop/cop/bundler/gem_filename.rb +103 -0
- data/lib/rubocop/cop/bundler/insecure_protocol_source.rb +45 -21
- data/lib/rubocop/cop/bundler/ordered_gems.rb +3 -12
- data/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +2 -2
- data/lib/rubocop/cop/correctors/line_break_corrector.rb +1 -1
- data/lib/rubocop/cop/correctors/ordered_gem_corrector.rb +11 -10
- data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +3 -12
- data/lib/rubocop/cop/gemspec/required_ruby_version.rb +1 -1
- data/lib/rubocop/cop/generator.rb +14 -8
- data/lib/rubocop/cop/internal_affairs/node_matcher_directive.rb +1 -1
- data/lib/rubocop/cop/layout/argument_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/class_structure.rb +2 -1
- data/lib/rubocop/cop/layout/dot_position.rb +31 -4
- data/lib/rubocop/cop/layout/end_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/leading_comment_space.rb +1 -1
- data/lib/rubocop/cop/layout/line_length.rb +8 -6
- data/lib/rubocop/cop/layout/multiline_block_layout.rb +1 -1
- data/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb +3 -0
- data/lib/rubocop/cop/layout/redundant_line_break.rb +1 -0
- data/lib/rubocop/cop/layout/single_line_block_chain.rb +15 -4
- data/lib/rubocop/cop/layout/space_after_not.rb +1 -0
- data/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +2 -1
- data/lib/rubocop/cop/layout/space_around_keyword.rb +2 -2
- data/lib/rubocop/cop/layout/space_before_brackets.rb +1 -0
- data/lib/rubocop/cop/layout/space_inside_parens.rb +74 -24
- data/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +1 -1
- data/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb +111 -0
- data/lib/rubocop/cop/lint/ambiguous_range.rb +8 -8
- data/lib/rubocop/cop/lint/assignment_in_condition.rb +7 -5
- data/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb +18 -5
- data/lib/rubocop/cop/lint/boolean_symbol.rb +5 -0
- data/lib/rubocop/cop/lint/debugger.rb +2 -4
- data/lib/rubocop/cop/lint/deprecated_class_methods.rb +4 -4
- data/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb +24 -1
- data/lib/rubocop/cop/lint/else_layout.rb +9 -5
- data/lib/rubocop/cop/lint/empty_in_pattern.rb +1 -1
- data/lib/rubocop/cop/lint/erb_new_arguments.rb +1 -1
- data/lib/rubocop/cop/lint/float_out_of_range.rb +1 -1
- data/lib/rubocop/cop/lint/hash_compare_by_identity.rb +12 -3
- data/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb +67 -0
- data/lib/rubocop/cop/lint/interpolation_check.rb +5 -0
- data/lib/rubocop/cop/lint/loop.rb +4 -3
- data/lib/rubocop/cop/lint/non_deterministic_require_order.rb +5 -1
- data/lib/rubocop/cop/lint/number_conversion.rb +12 -1
- data/lib/rubocop/cop/lint/numbered_parameter_assignment.rb +1 -1
- data/lib/rubocop/cop/lint/or_assignment_to_constant.rb +4 -2
- data/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb +17 -0
- data/lib/rubocop/cop/lint/percent_string_array.rb +10 -0
- data/lib/rubocop/cop/lint/raise_exception.rb +4 -0
- data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +5 -4
- data/lib/rubocop/cop/lint/require_relative_self_path.rb +50 -0
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +1 -1
- data/lib/rubocop/cop/lint/symbol_conversion.rb +1 -1
- data/lib/rubocop/cop/lint/triple_quotes.rb +1 -1
- data/lib/rubocop/cop/lint/unexpected_block_arity.rb +8 -3
- data/lib/rubocop/cop/lint/unused_method_argument.rb +2 -3
- data/lib/rubocop/cop/lint/useless_method_definition.rb +3 -2
- data/lib/rubocop/cop/lint/useless_setter_call.rb +7 -4
- data/lib/rubocop/cop/lint/useless_times.rb +4 -3
- data/lib/rubocop/cop/metrics/abc_size.rb +6 -0
- data/lib/rubocop/cop/metrics/perceived_complexity.rb +1 -1
- data/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +1 -1
- data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +1 -1
- data/lib/rubocop/cop/mixin/annotation_comment.rb +57 -34
- data/lib/rubocop/cop/mixin/code_length.rb +1 -1
- data/lib/rubocop/cop/mixin/documentation_comment.rb +5 -2
- data/lib/rubocop/cop/mixin/frozen_string_literal.rb +23 -1
- data/lib/rubocop/cop/mixin/heredoc.rb +1 -3
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +2 -2
- data/lib/rubocop/cop/mixin/ordered_gem_node.rb +9 -1
- data/lib/rubocop/cop/mixin/percent_array.rb +6 -1
- data/lib/rubocop/cop/mixin/preceding_following_alignment.rb +9 -1
- data/lib/rubocop/cop/mixin/string_literals_help.rb +5 -1
- data/lib/rubocop/cop/naming/ascii_identifiers.rb +0 -3
- data/lib/rubocop/cop/naming/block_parameter_name.rb +1 -1
- data/lib/rubocop/cop/naming/constant_name.rb +1 -1
- data/lib/rubocop/cop/naming/inclusive_language.rb +9 -9
- data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +5 -4
- data/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +7 -0
- data/lib/rubocop/cop/security/io_methods.rb +49 -0
- data/lib/rubocop/cop/security/json_load.rb +8 -7
- data/lib/rubocop/cop/security/open.rb +4 -0
- data/lib/rubocop/cop/security/yaml_load.rb +4 -0
- data/lib/rubocop/cop/style/accessor_grouping.rb +2 -2
- data/lib/rubocop/cop/style/and_or.rb +5 -0
- data/lib/rubocop/cop/style/arguments_forwarding.rb +13 -2
- data/lib/rubocop/cop/style/array_coercion.rb +21 -3
- data/lib/rubocop/cop/style/ascii_comments.rb +0 -3
- data/lib/rubocop/cop/style/block_delimiters.rb +23 -6
- data/lib/rubocop/cop/style/case_equality.rb +6 -9
- data/lib/rubocop/cop/style/case_like_if.rb +5 -0
- data/lib/rubocop/cop/style/class_and_module_children.rb +9 -0
- data/lib/rubocop/cop/style/collection_compact.rb +7 -5
- data/lib/rubocop/cop/style/collection_methods.rb +8 -6
- data/lib/rubocop/cop/style/combinable_loops.rb +3 -2
- data/lib/rubocop/cop/style/comment_annotation.rb +25 -39
- data/lib/rubocop/cop/style/commented_keyword.rb +4 -1
- data/lib/rubocop/cop/style/date_time.rb +5 -0
- data/lib/rubocop/cop/style/document_dynamic_eval_definition.rb +1 -1
- data/lib/rubocop/cop/style/documentation.rb +23 -8
- data/lib/rubocop/cop/style/double_negation.rb +15 -5
- data/lib/rubocop/cop/style/empty_method.rb +1 -1
- data/lib/rubocop/cop/style/explicit_block_argument.rb +21 -11
- data/lib/rubocop/cop/style/float_division.rb +10 -2
- data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +7 -2
- data/lib/rubocop/cop/style/global_std_stream.rb +4 -0
- data/lib/rubocop/cop/style/hash_each_methods.rb +5 -0
- data/lib/rubocop/cop/style/hash_except.rb +4 -3
- data/lib/rubocop/cop/style/hash_transform_keys.rb +4 -6
- data/lib/rubocop/cop/style/hash_transform_values.rb +4 -6
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +18 -16
- data/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb +18 -4
- data/lib/rubocop/cop/style/infinite_loop.rb +4 -3
- data/lib/rubocop/cop/style/inverse_methods.rb +9 -2
- data/lib/rubocop/cop/style/lambda_call.rb +1 -1
- data/lib/rubocop/cop/style/line_end_concatenation.rb +13 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +6 -6
- data/lib/rubocop/cop/style/module_function.rb +8 -9
- data/lib/rubocop/cop/style/mutable_constant.rb +73 -6
- data/lib/rubocop/cop/style/negated_if.rb +1 -1
- data/lib/rubocop/cop/style/negated_unless.rb +1 -1
- data/lib/rubocop/cop/style/non_nil_check.rb +2 -2
- data/lib/rubocop/cop/style/not.rb +2 -2
- data/lib/rubocop/cop/style/numbered_parameters.rb +46 -0
- data/lib/rubocop/cop/style/numbered_parameters_limit.rb +50 -0
- data/lib/rubocop/cop/style/numeric_literals.rb +7 -8
- data/lib/rubocop/cop/style/numeric_predicate.rb +5 -0
- data/lib/rubocop/cop/style/optional_arguments.rb +4 -0
- data/lib/rubocop/cop/style/optional_boolean_parameter.rb +14 -4
- data/lib/rubocop/cop/style/parallel_assignment.rb +1 -1
- data/lib/rubocop/cop/style/percent_q_literals.rb +2 -2
- data/lib/rubocop/cop/style/preferred_hash_methods.rb +9 -4
- data/lib/rubocop/cop/style/quoted_symbols.rb +10 -6
- data/lib/rubocop/cop/style/raise_args.rb +1 -1
- data/lib/rubocop/cop/style/redundant_argument.rb +19 -9
- data/lib/rubocop/cop/style/redundant_condition.rb +2 -3
- data/lib/rubocop/cop/style/redundant_fetch_block.rb +4 -0
- data/lib/rubocop/cop/style/redundant_file_extension_in_require.rb +12 -3
- data/lib/rubocop/cop/style/redundant_freeze.rb +4 -4
- data/lib/rubocop/cop/style/redundant_interpolation.rb +1 -1
- data/lib/rubocop/cop/style/redundant_percent_q.rb +2 -3
- data/lib/rubocop/cop/style/redundant_self.rb +10 -0
- data/lib/rubocop/cop/style/redundant_self_assignment.rb +4 -3
- data/lib/rubocop/cop/style/redundant_self_assignment_branch.rb +1 -1
- data/lib/rubocop/cop/style/redundant_sort.rb +51 -18
- data/lib/rubocop/cop/style/regexp_literal.rb +3 -3
- data/lib/rubocop/cop/style/return_nil.rb +2 -1
- data/lib/rubocop/cop/style/safe_navigation.rb +13 -2
- data/lib/rubocop/cop/style/select_by_regexp.rb +133 -0
- data/lib/rubocop/cop/style/single_argument_dig.rb +5 -0
- data/lib/rubocop/cop/style/slicing_with_range.rb +13 -0
- data/lib/rubocop/cop/style/special_global_vars.rb +4 -0
- data/lib/rubocop/cop/style/static_class.rb +5 -5
- data/lib/rubocop/cop/style/string_chars.rb +4 -2
- data/lib/rubocop/cop/style/string_concatenation.rb +5 -1
- data/lib/rubocop/cop/style/string_hash_keys.rb +4 -0
- data/lib/rubocop/cop/style/struct_inheritance.rb +4 -0
- data/lib/rubocop/cop/style/swap_values.rb +4 -2
- data/lib/rubocop/cop/style/symbol_proc.rb +26 -0
- data/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +19 -0
- data/lib/rubocop/cop/style/trivial_accessors.rb +1 -1
- data/lib/rubocop/cop/style/yoda_condition.rb +24 -7
- data/lib/rubocop/cop/style/zero_length_predicate.rb +6 -0
- data/lib/rubocop/cop/util.rb +4 -3
- data/lib/rubocop/cops_documentation_generator.rb +17 -5
- data/lib/rubocop/options.rb +126 -112
- data/lib/rubocop/rake_task.rb +1 -1
- data/lib/rubocop/result_cache.rb +3 -3
- data/lib/rubocop/rspec/cop_helper.rb +1 -1
- data/lib/rubocop/rspec/expect_offense.rb +6 -2
- data/lib/rubocop/runner.rb +2 -3
- data/lib/rubocop/version.rb +1 -1
- data/lib/rubocop.rb +10 -2
- metadata +17 -9
@@ -126,7 +126,7 @@ module RuboCop
|
|
126
126
|
@offenses
|
127
127
|
end
|
128
128
|
|
129
|
-
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
129
|
+
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity
|
130
130
|
def expect_correction(correction, loop: true, source: nil)
|
131
131
|
if source
|
132
132
|
expected_annotations = parse_annotations(source, raise_error: false)
|
@@ -136,6 +136,8 @@ module RuboCop
|
|
136
136
|
|
137
137
|
raise '`expect_correction` must follow `expect_offense`' unless @processed_source
|
138
138
|
|
139
|
+
source = @processed_source.raw_source
|
140
|
+
|
139
141
|
iteration = 0
|
140
142
|
new_source = loop do
|
141
143
|
iteration += 1
|
@@ -155,9 +157,11 @@ module RuboCop
|
|
155
157
|
_investigate(cop, @processed_source)
|
156
158
|
end
|
157
159
|
|
160
|
+
raise 'Use `expect_no_corrections` if the code will not change' if new_source == source
|
161
|
+
|
158
162
|
expect(new_source).to eq(correction)
|
159
163
|
end
|
160
|
-
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
164
|
+
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity
|
161
165
|
|
162
166
|
def expect_no_corrections
|
163
167
|
raise '`expect_no_corrections` must follow `expect_offense`' unless @processed_source
|
data/lib/rubocop/runner.rb
CHANGED
@@ -60,7 +60,7 @@ module RuboCop
|
|
60
60
|
|
61
61
|
private
|
62
62
|
|
63
|
-
# Warms up the RuboCop cache by forking a suitable number of
|
63
|
+
# Warms up the RuboCop cache by forking a suitable number of RuboCop
|
64
64
|
# instances that each inspects its allotted group of files.
|
65
65
|
def warm_cache(target_files)
|
66
66
|
puts 'Running parallel inspection' if @options[:debug]
|
@@ -216,8 +216,7 @@ module RuboCop
|
|
216
216
|
def cached_run?
|
217
217
|
@cached_run ||=
|
218
218
|
(@options[:cache] == 'true' ||
|
219
|
-
@options[:cache] != 'false' &&
|
220
|
-
@config_store.for_pwd.for_all_cops['UseCache']) &&
|
219
|
+
(@options[:cache] != 'false' && @config_store.for_pwd.for_all_cops['UseCache'])) &&
|
221
220
|
# When running --auto-gen-config, there's some processing done in the
|
222
221
|
# cops related to calculating the Max parameters for Metrics cops. We
|
223
222
|
# need to do that processing and cannot use caching.
|
data/lib/rubocop/version.rb
CHANGED
data/lib/rubocop.rb
CHANGED
@@ -57,7 +57,6 @@ require_relative 'rubocop/cop/variable_force/reference'
|
|
57
57
|
require_relative 'rubocop/cop/variable_force/scope'
|
58
58
|
require_relative 'rubocop/cop/variable_force/variable_table'
|
59
59
|
|
60
|
-
require_relative 'rubocop/cop/mixin/annotation_comment'
|
61
60
|
require_relative 'rubocop/cop/mixin/array_min_size'
|
62
61
|
require_relative 'rubocop/cop/mixin/array_syntax'
|
63
62
|
require_relative 'rubocop/cop/mixin/alignment'
|
@@ -76,6 +75,7 @@ require_relative 'rubocop/cop/mixin/def_node'
|
|
76
75
|
require_relative 'rubocop/cop/mixin/documentation_comment'
|
77
76
|
require_relative 'rubocop/cop/mixin/duplication'
|
78
77
|
require_relative 'rubocop/cop/mixin/range_help'
|
78
|
+
require_relative 'rubocop/cop/mixin/annotation_comment' # relies on range
|
79
79
|
require_relative 'rubocop/cop/mixin/empty_lines_around_body' # relies on range
|
80
80
|
require_relative 'rubocop/cop/mixin/empty_parameter'
|
81
81
|
require_relative 'rubocop/cop/mixin/end_keyword_alignment'
|
@@ -152,6 +152,7 @@ require_relative 'rubocop/cop/correctors/unused_arg_corrector'
|
|
152
152
|
|
153
153
|
require_relative 'rubocop/cop/bundler/duplicated_gem'
|
154
154
|
require_relative 'rubocop/cop/bundler/gem_comment'
|
155
|
+
require_relative 'rubocop/cop/bundler/gem_filename'
|
155
156
|
require_relative 'rubocop/cop/bundler/gem_version'
|
156
157
|
require_relative 'rubocop/cop/bundler/insecure_protocol_source'
|
157
158
|
require_relative 'rubocop/cop/bundler/ordered_gems'
|
@@ -262,6 +263,7 @@ require_relative 'rubocop/cop/layout/trailing_whitespace'
|
|
262
263
|
require_relative 'rubocop/cop/lint/ambiguous_assignment'
|
263
264
|
require_relative 'rubocop/cop/lint/ambiguous_block_association'
|
264
265
|
require_relative 'rubocop/cop/lint/ambiguous_operator'
|
266
|
+
require_relative 'rubocop/cop/lint/ambiguous_operator_precedence'
|
265
267
|
require_relative 'rubocop/cop/lint/ambiguous_range'
|
266
268
|
require_relative 'rubocop/cop/lint/ambiguous_regexp_literal'
|
267
269
|
require_relative 'rubocop/cop/lint/assignment_in_condition'
|
@@ -305,8 +307,9 @@ require_relative 'rubocop/cop/lint/hash_compare_by_identity'
|
|
305
307
|
require_relative 'rubocop/cop/lint/heredoc_method_call_position'
|
306
308
|
require_relative 'rubocop/cop/lint/identity_comparison'
|
307
309
|
require_relative 'rubocop/cop/lint/implicit_string_concatenation'
|
308
|
-
require_relative 'rubocop/cop/lint/
|
310
|
+
require_relative 'rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler'
|
309
311
|
require_relative 'rubocop/cop/lint/ineffective_access_modifier'
|
312
|
+
require_relative 'rubocop/cop/lint/inherit_exception'
|
310
313
|
require_relative 'rubocop/cop/lint/interpolation_check'
|
311
314
|
require_relative 'rubocop/cop/lint/lambda_without_literal_block'
|
312
315
|
require_relative 'rubocop/cop/lint/literal_as_condition'
|
@@ -343,6 +346,7 @@ require_relative 'rubocop/cop/lint/redundant_with_index'
|
|
343
346
|
require_relative 'rubocop/cop/lint/redundant_with_object'
|
344
347
|
require_relative 'rubocop/cop/lint/regexp_as_condition'
|
345
348
|
require_relative 'rubocop/cop/lint/require_parentheses'
|
349
|
+
require_relative 'rubocop/cop/lint/require_relative_self_path'
|
346
350
|
require_relative 'rubocop/cop/lint/rescue_exception'
|
347
351
|
require_relative 'rubocop/cop/lint/rescue_type'
|
348
352
|
require_relative 'rubocop/cop/lint/return_in_void_context'
|
@@ -509,6 +513,7 @@ require_relative 'rubocop/cop/style/line_end_concatenation'
|
|
509
513
|
require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
|
510
514
|
require_relative 'rubocop/cop/style/method_call_with_args_parentheses'
|
511
515
|
require_relative 'rubocop/cop/style/multiline_in_pattern_then'
|
516
|
+
require_relative 'rubocop/cop/style/numbered_parameters'
|
512
517
|
require_relative 'rubocop/cop/style/redundant_assignment'
|
513
518
|
require_relative 'rubocop/cop/style/redundant_fetch_block'
|
514
519
|
require_relative 'rubocop/cop/style/redundant_file_extension_in_require'
|
@@ -545,6 +550,7 @@ require_relative 'rubocop/cop/style/nil_comparison'
|
|
545
550
|
require_relative 'rubocop/cop/style/nil_lambda'
|
546
551
|
require_relative 'rubocop/cop/style/non_nil_check'
|
547
552
|
require_relative 'rubocop/cop/style/not'
|
553
|
+
require_relative 'rubocop/cop/style/numbered_parameters_limit'
|
548
554
|
require_relative 'rubocop/cop/style/numeric_literals'
|
549
555
|
require_relative 'rubocop/cop/style/numeric_literal_prefix'
|
550
556
|
require_relative 'rubocop/cop/style/numeric_predicate'
|
@@ -585,6 +591,7 @@ require_relative 'rubocop/cop/style/rescue_standard_error'
|
|
585
591
|
require_relative 'rubocop/cop/style/return_nil'
|
586
592
|
require_relative 'rubocop/cop/style/safe_navigation'
|
587
593
|
require_relative 'rubocop/cop/style/sample'
|
594
|
+
require_relative 'rubocop/cop/style/select_by_regexp'
|
588
595
|
require_relative 'rubocop/cop/style/self_assignment'
|
589
596
|
require_relative 'rubocop/cop/style/semicolon'
|
590
597
|
require_relative 'rubocop/cop/style/send'
|
@@ -632,6 +639,7 @@ require_relative 'rubocop/cop/style/yoda_condition'
|
|
632
639
|
require_relative 'rubocop/cop/style/zero_length_predicate'
|
633
640
|
|
634
641
|
require_relative 'rubocop/cop/security/eval'
|
642
|
+
require_relative 'rubocop/cop/security/io_methods'
|
635
643
|
require_relative 'rubocop/cop/security/json_load'
|
636
644
|
require_relative 'rubocop/cop/security/marshal_load'
|
637
645
|
require_relative 'rubocop/cop/security/open'
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
8
8
|
- Jonas Arvidsson
|
9
9
|
- Yuji Nakayama
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-10-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: parallel
|
@@ -100,7 +100,7 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.12.0
|
104
104
|
- - "<"
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '2.0'
|
@@ -110,7 +110,7 @@ dependencies:
|
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: 1.
|
113
|
+
version: 1.12.0
|
114
114
|
- - "<"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '2.0'
|
@@ -221,6 +221,7 @@ files:
|
|
221
221
|
- lib/rubocop/cop/base.rb
|
222
222
|
- lib/rubocop/cop/bundler/duplicated_gem.rb
|
223
223
|
- lib/rubocop/cop/bundler/gem_comment.rb
|
224
|
+
- lib/rubocop/cop/bundler/gem_filename.rb
|
224
225
|
- lib/rubocop/cop/bundler/gem_version.rb
|
225
226
|
- lib/rubocop/cop/bundler/insecure_protocol_source.rb
|
226
227
|
- lib/rubocop/cop/bundler/ordered_gems.rb
|
@@ -372,6 +373,7 @@ files:
|
|
372
373
|
- lib/rubocop/cop/lint/ambiguous_assignment.rb
|
373
374
|
- lib/rubocop/cop/lint/ambiguous_block_association.rb
|
374
375
|
- lib/rubocop/cop/lint/ambiguous_operator.rb
|
376
|
+
- lib/rubocop/cop/lint/ambiguous_operator_precedence.rb
|
375
377
|
- lib/rubocop/cop/lint/ambiguous_range.rb
|
376
378
|
- lib/rubocop/cop/lint/ambiguous_regexp_literal.rb
|
377
379
|
- lib/rubocop/cop/lint/assignment_in_condition.rb
|
@@ -415,6 +417,7 @@ files:
|
|
415
417
|
- lib/rubocop/cop/lint/heredoc_method_call_position.rb
|
416
418
|
- lib/rubocop/cop/lint/identity_comparison.rb
|
417
419
|
- lib/rubocop/cop/lint/implicit_string_concatenation.rb
|
420
|
+
- lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb
|
418
421
|
- lib/rubocop/cop/lint/ineffective_access_modifier.rb
|
419
422
|
- lib/rubocop/cop/lint/inherit_exception.rb
|
420
423
|
- lib/rubocop/cop/lint/interpolation_check.rb
|
@@ -453,6 +456,7 @@ files:
|
|
453
456
|
- lib/rubocop/cop/lint/redundant_with_object.rb
|
454
457
|
- lib/rubocop/cop/lint/regexp_as_condition.rb
|
455
458
|
- lib/rubocop/cop/lint/require_parentheses.rb
|
459
|
+
- lib/rubocop/cop/lint/require_relative_self_path.rb
|
456
460
|
- lib/rubocop/cop/lint/rescue_exception.rb
|
457
461
|
- lib/rubocop/cop/lint/rescue_type.rb
|
458
462
|
- lib/rubocop/cop/lint/return_in_void_context.rb
|
@@ -596,6 +600,7 @@ files:
|
|
596
600
|
- lib/rubocop/cop/offense.rb
|
597
601
|
- lib/rubocop/cop/registry.rb
|
598
602
|
- lib/rubocop/cop/security/eval.rb
|
603
|
+
- lib/rubocop/cop/security/io_methods.rb
|
599
604
|
- lib/rubocop/cop/security/json_load.rb
|
600
605
|
- lib/rubocop/cop/security/marshal_load.rb
|
601
606
|
- lib/rubocop/cop/security/open.rb
|
@@ -728,6 +733,8 @@ files:
|
|
728
733
|
- lib/rubocop/cop/style/nil_lambda.rb
|
729
734
|
- lib/rubocop/cop/style/non_nil_check.rb
|
730
735
|
- lib/rubocop/cop/style/not.rb
|
736
|
+
- lib/rubocop/cop/style/numbered_parameters.rb
|
737
|
+
- lib/rubocop/cop/style/numbered_parameters_limit.rb
|
731
738
|
- lib/rubocop/cop/style/numeric_literal_prefix.rb
|
732
739
|
- lib/rubocop/cop/style/numeric_literals.rb
|
733
740
|
- lib/rubocop/cop/style/numeric_predicate.rb
|
@@ -773,6 +780,7 @@ files:
|
|
773
780
|
- lib/rubocop/cop/style/return_nil.rb
|
774
781
|
- lib/rubocop/cop/style/safe_navigation.rb
|
775
782
|
- lib/rubocop/cop/style/sample.rb
|
783
|
+
- lib/rubocop/cop/style/select_by_regexp.rb
|
776
784
|
- lib/rubocop/cop/style/self_assignment.rb
|
777
785
|
- lib/rubocop/cop/style/semicolon.rb
|
778
786
|
- lib/rubocop/cop/style/send.rb
|
@@ -889,9 +897,9 @@ metadata:
|
|
889
897
|
homepage_uri: https://rubocop.org/
|
890
898
|
changelog_uri: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
|
891
899
|
source_code_uri: https://github.com/rubocop/rubocop/
|
892
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
900
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.22/
|
893
901
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
894
|
-
post_install_message:
|
902
|
+
post_install_message:
|
895
903
|
rdoc_options: []
|
896
904
|
require_paths:
|
897
905
|
- lib
|
@@ -906,8 +914,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
906
914
|
- !ruby/object:Gem::Version
|
907
915
|
version: '0'
|
908
916
|
requirements: []
|
909
|
-
rubygems_version: 3.
|
910
|
-
signing_key:
|
917
|
+
rubygems_version: 3.2.22
|
918
|
+
signing_key:
|
911
919
|
specification_version: 4
|
912
920
|
summary: Automatic Ruby code style checking tool.
|
913
921
|
test_files: []
|