rubocop 1.92.3 → 1.93.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/default.yml +5 -1
- data/lib/rubocop/config.rb +6 -0
- data/lib/rubocop/config_store.rb +1 -0
- data/lib/rubocop/config_validator.rb +45 -1
- data/lib/rubocop/cop/base.rb +5 -1
- data/lib/rubocop/cop/correctors/for_to_each_corrector.rb +25 -1
- data/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb +1 -1
- data/lib/rubocop/cop/internal_affairs/invalid_node_pattern.rb +91 -0
- data/lib/rubocop/cop/internal_affairs/node_search_as_condition.rb +79 -0
- data/lib/rubocop/cop/internal_affairs/redundant_autocorrect_incompatible_with.rb +83 -0
- data/lib/rubocop/cop/internal_affairs.rb +3 -0
- data/lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb +16 -4
- data/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +25 -7
- data/lib/rubocop/cop/layout/first_argument_indentation.rb +1 -1
- data/lib/rubocop/cop/layout/line_length.rb +14 -1
- data/lib/rubocop/cop/lint/duplicate_methods.rb +47 -9
- data/lib/rubocop/cop/lint/duplicate_require.rb +1 -1
- data/lib/rubocop/cop/lint/lambda_without_literal_block.rb +17 -4
- data/lib/rubocop/cop/lint/non_atomic_file_operation.rb +11 -3
- data/lib/rubocop/cop/lint/number_conversion.rb +10 -0
- data/lib/rubocop/cop/lint/redundant_string_coercion.rb +16 -2
- data/lib/rubocop/cop/lint/require_relative_self_path.rb +36 -1
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +1 -1
- data/lib/rubocop/cop/lint/useless_assignment.rb +45 -1
- data/lib/rubocop/cop/lint/useless_constant_scoping.rb +3 -18
- data/lib/rubocop/cop/lint/useless_default_value_argument.rb +1 -1
- data/lib/rubocop/cop/lint/useless_numeric_operation.rb +18 -6
- data/lib/rubocop/cop/lint/useless_times.rb +40 -12
- data/lib/rubocop/cop/mixin/empty_lines_around_body.rb +16 -1
- data/lib/rubocop/cop/mixin/hash_transform_method.rb +3 -3
- data/lib/rubocop/cop/naming/block_forwarding.rb +2 -2
- data/lib/rubocop/cop/style/arguments_forwarding.rb +10 -9
- data/lib/rubocop/cop/style/array_coercion.rb +1 -1
- data/lib/rubocop/cop/style/array_intersect.rb +15 -7
- data/lib/rubocop/cop/style/block_delimiters.rb +0 -1
- data/lib/rubocop/cop/style/data_inheritance.rb +78 -9
- data/lib/rubocop/cop/style/dig_chain.rb +13 -2
- data/lib/rubocop/cop/style/each_with_object.rb +21 -5
- data/lib/rubocop/cop/style/empty_class_definition.rb +19 -1
- data/lib/rubocop/cop/style/empty_method.rb +11 -0
- data/lib/rubocop/cop/style/explicit_block_argument.rb +1 -1
- data/lib/rubocop/cop/style/fetch_env_var.rb +5 -5
- data/lib/rubocop/cop/style/file_read.rb +5 -1
- data/lib/rubocop/cop/style/file_write.rb +89 -20
- data/lib/rubocop/cop/style/hash_lookup_method.rb +2 -4
- data/lib/rubocop/cop/style/hash_transform_keys.rb +1 -1
- data/lib/rubocop/cop/style/hash_transform_values.rb +1 -1
- data/lib/rubocop/cop/style/line_end_concatenation.rb +1 -1
- data/lib/rubocop/cop/style/map_to_hash.rb +0 -4
- data/lib/rubocop/cop/style/method_def_parentheses.rb +0 -4
- data/lib/rubocop/cop/style/multiline_method_signature.rb +15 -5
- data/lib/rubocop/cop/style/multiline_ternary_operator.rb +31 -1
- data/lib/rubocop/cop/style/negated_if_else_condition.rb +9 -1
- data/lib/rubocop/cop/style/nested_parenthesized_calls.rb +0 -4
- data/lib/rubocop/cop/style/nil_comparison.rb +10 -0
- data/lib/rubocop/cop/style/nil_lambda.rb +4 -11
- data/lib/rubocop/cop/style/non_nil_check.rb +13 -0
- data/lib/rubocop/cop/style/operator_method_call.rb +14 -0
- data/lib/rubocop/cop/style/raise_args.rb +15 -0
- data/lib/rubocop/cop/style/redundant_array_constructor.rb +14 -0
- data/lib/rubocop/cop/style/redundant_begin.rb +26 -6
- data/lib/rubocop/cop/style/redundant_each.rb +18 -0
- data/lib/rubocop/cop/style/redundant_exception.rb +16 -6
- data/lib/rubocop/cop/style/redundant_initialize.rb +115 -2
- data/lib/rubocop/cop/style/redundant_interpolation.rb +2 -1
- data/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb +2 -2
- data/lib/rubocop/cop/style/redundant_percent_q.rb +4 -0
- data/lib/rubocop/cop/style/redundant_regexp_constructor.rb +11 -1
- data/lib/rubocop/cop/style/redundant_self.rb +1 -1
- data/lib/rubocop/cop/style/redundant_self_assignment.rb +20 -12
- data/lib/rubocop/cop/style/redundant_sort.rb +1 -1
- data/lib/rubocop/cop/style/rescue_modifier.rb +0 -4
- data/lib/rubocop/cop/style/select_by_kind.rb +1 -6
- data/lib/rubocop/cop/style/select_by_range.rb +1 -6
- data/lib/rubocop/cop/style/select_by_regexp.rb +1 -6
- data/lib/rubocop/cop/style/self_assignment.rb +0 -4
- data/lib/rubocop/cop/style/single_argument_dig.rb +22 -2
- data/lib/rubocop/cop/style/sole_nested_conditional.rb +12 -6
- data/lib/rubocop/cop/style/struct_inheritance.rb +68 -16
- data/lib/rubocop/cop/style/swap_values.rb +10 -13
- data/lib/rubocop/cop/style/symbol_proc.rb +1 -1
- data/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +0 -4
- data/lib/rubocop/rspec/cop_helper.rb +8 -2
- data/lib/rubocop/rspec/shared_contexts.rb +11 -11
- data/lib/rubocop/runner.rb +16 -7
- data/lib/rubocop/target_ruby.rb +6 -8
- data/lib/rubocop/version.rb +18 -8
- metadata +9 -6
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.93.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bozhidar Batsov
|
|
@@ -127,7 +127,7 @@ dependencies:
|
|
|
127
127
|
requirements:
|
|
128
128
|
- - ">="
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: 1.
|
|
130
|
+
version: 1.54.0
|
|
131
131
|
- - "<"
|
|
132
132
|
- !ruby/object:Gem::Version
|
|
133
133
|
version: '2.0'
|
|
@@ -137,7 +137,7 @@ dependencies:
|
|
|
137
137
|
requirements:
|
|
138
138
|
- - ">="
|
|
139
139
|
- !ruby/object:Gem::Version
|
|
140
|
-
version: 1.
|
|
140
|
+
version: 1.54.0
|
|
141
141
|
- - "<"
|
|
142
142
|
- !ruby/object:Gem::Version
|
|
143
143
|
version: '2.0'
|
|
@@ -301,6 +301,7 @@ files:
|
|
|
301
301
|
- lib/rubocop/cop/internal_affairs/example_description.rb
|
|
302
302
|
- lib/rubocop/cop/internal_affairs/example_heredoc_delimiter.rb
|
|
303
303
|
- lib/rubocop/cop/internal_affairs/inherit_deprecated_cop_class.rb
|
|
304
|
+
- lib/rubocop/cop/internal_affairs/invalid_node_pattern.rb
|
|
304
305
|
- lib/rubocop/cop/internal_affairs/itblock_handler.rb
|
|
305
306
|
- lib/rubocop/cop/internal_affairs/lambda_or_proc.rb
|
|
306
307
|
- lib/rubocop/cop/internal_affairs/location_exists.rb
|
|
@@ -314,6 +315,7 @@ files:
|
|
|
314
315
|
- lib/rubocop/cop/internal_affairs/node_pattern_groups.rb
|
|
315
316
|
- lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_processor.rb
|
|
316
317
|
- lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb
|
|
318
|
+
- lib/rubocop/cop/internal_affairs/node_search_as_condition.rb
|
|
317
319
|
- lib/rubocop/cop/internal_affairs/node_type_group.rb
|
|
318
320
|
- lib/rubocop/cop/internal_affairs/node_type_multiple_predicates.rb
|
|
319
321
|
- lib/rubocop/cop/internal_affairs/node_type_predicate.rb
|
|
@@ -323,6 +325,7 @@ files:
|
|
|
323
325
|
- lib/rubocop/cop/internal_affairs/operator_keyword.rb
|
|
324
326
|
- lib/rubocop/cop/internal_affairs/plugin.rb
|
|
325
327
|
- lib/rubocop/cop/internal_affairs/processed_source_buffer_name.rb
|
|
328
|
+
- lib/rubocop/cop/internal_affairs/redundant_autocorrect_incompatible_with.rb
|
|
326
329
|
- lib/rubocop/cop/internal_affairs/redundant_context_config_parameter.rb
|
|
327
330
|
- lib/rubocop/cop/internal_affairs/redundant_described_class_as_subject.rb
|
|
328
331
|
- lib/rubocop/cop/internal_affairs/redundant_expect_offense_arguments.rb
|
|
@@ -1158,9 +1161,9 @@ licenses:
|
|
|
1158
1161
|
- MIT
|
|
1159
1162
|
metadata:
|
|
1160
1163
|
homepage_uri: https://rubocop.org/
|
|
1161
|
-
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.
|
|
1164
|
+
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.93.0
|
|
1162
1165
|
source_code_uri: https://github.com/rubocop/rubocop/
|
|
1163
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
|
1166
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.93/
|
|
1164
1167
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
|
1165
1168
|
rubygems_mfa_required: 'true'
|
|
1166
1169
|
rdoc_options: []
|
|
@@ -1177,7 +1180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1177
1180
|
- !ruby/object:Gem::Version
|
|
1178
1181
|
version: '0'
|
|
1179
1182
|
requirements: []
|
|
1180
|
-
rubygems_version:
|
|
1183
|
+
rubygems_version: 3.6.9
|
|
1181
1184
|
specification_version: 4
|
|
1182
1185
|
summary: Automatic Ruby code style checking tool.
|
|
1183
1186
|
test_files: []
|