rubocop 1.50.2 → 1.57.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 +5 -3
- data/config/default.yml +110 -14
- data/config/obsoletion.yml +5 -0
- data/lib/rubocop/cli/command/lsp.rb +19 -0
- data/lib/rubocop/cli.rb +4 -1
- data/lib/rubocop/config.rb +4 -0
- data/lib/rubocop/config_finder.rb +2 -2
- data/lib/rubocop/config_loader_resolver.rb +4 -3
- data/lib/rubocop/config_obsoletion/parameter_rule.rb +9 -1
- data/lib/rubocop/config_obsoletion.rb +2 -2
- data/lib/rubocop/cop/autocorrect_logic.rb +3 -1
- data/lib/rubocop/cop/base.rb +6 -2
- data/lib/rubocop/cop/bundler/duplicated_gem.rb +1 -0
- data/lib/rubocop/cop/bundler/duplicated_group.rb +127 -0
- data/lib/rubocop/cop/bundler/gem_comment.rb +1 -1
- data/lib/rubocop/cop/bundler/gem_version.rb +2 -2
- data/lib/rubocop/cop/bundler/ordered_gems.rb +9 -1
- data/lib/rubocop/cop/correctors/alignment_corrector.rb +1 -1
- data/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +7 -4
- data/lib/rubocop/cop/gemspec/dependency_version.rb +2 -2
- data/lib/rubocop/cop/gemspec/development_dependencies.rb +1 -1
- data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +9 -1
- data/lib/rubocop/cop/generator/require_file_injector.rb +1 -1
- data/lib/rubocop/cop/internal_affairs/cop_description.rb +32 -8
- data/lib/rubocop/cop/internal_affairs/example_description.rb +42 -21
- data/lib/rubocop/cop/internal_affairs/location_line_equality_comparison.rb +3 -1
- data/lib/rubocop/cop/internal_affairs/node_matcher_directive.rb +5 -5
- data/lib/rubocop/cop/internal_affairs/redundant_method_dispatch_node.rb +11 -2
- data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +2 -0
- data/lib/rubocop/cop/layout/class_structure.rb +7 -0
- data/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +1 -2
- data/lib/rubocop/cop/layout/dot_position.rb +1 -5
- data/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +42 -9
- data/lib/rubocop/cop/layout/empty_line_between_defs.rb +27 -4
- data/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +2 -0
- data/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +2 -2
- data/lib/rubocop/cop/layout/heredoc_indentation.rb +3 -0
- data/lib/rubocop/cop/layout/indentation_style.rb +1 -1
- data/lib/rubocop/cop/layout/indentation_width.rb +3 -3
- data/lib/rubocop/cop/layout/leading_comment_space.rb +1 -1
- data/lib/rubocop/cop/layout/line_continuation_leading_space.rb +17 -9
- data/lib/rubocop/cop/layout/line_continuation_spacing.rb +1 -1
- data/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb +2 -0
- data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +18 -3
- data/lib/rubocop/cop/layout/redundant_line_break.rb +14 -4
- data/lib/rubocop/cop/layout/space_after_comma.rb +9 -1
- data/lib/rubocop/cop/layout/space_after_not.rb +1 -1
- data/lib/rubocop/cop/layout/space_around_method_call_operator.rb +2 -2
- data/lib/rubocop/cop/layout/space_around_operators.rb +3 -1
- data/lib/rubocop/cop/layout/space_inside_block_braces.rb +2 -0
- data/lib/rubocop/cop/layout/space_inside_parens.rb +1 -1
- data/lib/rubocop/cop/layout/space_inside_range_literal.rb +1 -1
- data/lib/rubocop/cop/layout/trailing_empty_lines.rb +5 -0
- data/lib/rubocop/cop/lint/ambiguous_block_association.rb +13 -1
- data/lib/rubocop/cop/lint/debugger.rb +18 -5
- data/lib/rubocop/cop/lint/duplicate_hash_key.rb +2 -1
- data/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb +46 -19
- data/lib/rubocop/cop/lint/empty_block.rb +1 -1
- data/lib/rubocop/cop/lint/erb_new_arguments.rb +3 -4
- data/lib/rubocop/cop/lint/heredoc_method_call_position.rb +1 -1
- data/lib/rubocop/cop/lint/identity_comparison.rb +0 -1
- data/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb +5 -3
- data/lib/rubocop/cop/lint/inherit_exception.rb +9 -0
- data/lib/rubocop/cop/lint/lambda_without_literal_block.rb +1 -1
- data/lib/rubocop/cop/lint/literal_in_interpolation.rb +1 -1
- data/lib/rubocop/cop/lint/missing_super.rb +34 -5
- data/lib/rubocop/cop/lint/mixed_case_range.rb +111 -0
- data/lib/rubocop/cop/lint/non_atomic_file_operation.rb +10 -7
- data/lib/rubocop/cop/lint/number_conversion.rb +5 -0
- data/lib/rubocop/cop/lint/numbered_parameter_assignment.rb +2 -2
- data/lib/rubocop/cop/lint/ordered_magic_comments.rb +0 -1
- data/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb +2 -2
- data/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb +130 -0
- data/lib/rubocop/cop/lint/redundant_require_statement.rb +12 -3
- data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +20 -4
- data/lib/rubocop/cop/lint/redundant_string_coercion.rb +1 -1
- data/lib/rubocop/cop/lint/safe_navigation_chain.rb +11 -4
- data/lib/rubocop/cop/lint/send_with_mixin_argument.rb +1 -2
- data/lib/rubocop/cop/lint/shadowed_exception.rb +5 -11
- data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +7 -1
- data/lib/rubocop/cop/lint/struct_new_override.rb +12 -12
- data/lib/rubocop/cop/lint/suppressed_exception.rb +2 -2
- data/lib/rubocop/cop/lint/symbol_conversion.rb +1 -1
- data/lib/rubocop/cop/lint/to_enum_arguments.rb +5 -3
- data/lib/rubocop/cop/lint/top_level_return_with_argument.rb +23 -9
- data/lib/rubocop/cop/lint/useless_assignment.rb +94 -10
- data/lib/rubocop/cop/lint/void.rb +57 -7
- data/lib/rubocop/cop/metrics/block_length.rb +1 -1
- data/lib/rubocop/cop/metrics/class_length.rb +2 -2
- data/lib/rubocop/cop/metrics/method_length.rb +1 -1
- data/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +1 -2
- data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +32 -4
- data/lib/rubocop/cop/migration/department_name.rb +2 -2
- data/lib/rubocop/cop/mixin/allowed_receivers.rb +34 -0
- data/lib/rubocop/cop/mixin/comments_help.rb +7 -3
- data/lib/rubocop/cop/mixin/def_node.rb +1 -1
- data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +1 -1
- data/lib/rubocop/cop/mixin/heredoc.rb +6 -2
- data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +3 -2
- data/lib/rubocop/cop/mixin/percent_literal.rb +1 -1
- data/lib/rubocop/cop/mixin/preceding_following_alignment.rb +5 -7
- data/lib/rubocop/cop/mixin/space_after_punctuation.rb +1 -1
- data/lib/rubocop/cop/mixin/string_help.rb +4 -2
- data/lib/rubocop/cop/mixin/trailing_comma.rb +1 -1
- data/lib/rubocop/cop/naming/block_forwarding.rb +1 -1
- data/lib/rubocop/cop/naming/constant_name.rb +1 -1
- data/lib/rubocop/cop/naming/file_name.rb +1 -1
- data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +3 -1
- data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +25 -10
- data/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +11 -3
- data/lib/rubocop/cop/naming/variable_name.rb +6 -1
- data/lib/rubocop/cop/style/accessor_grouping.rb +5 -1
- data/lib/rubocop/cop/style/alias.rb +9 -8
- data/lib/rubocop/cop/style/arguments_forwarding.rb +280 -63
- data/lib/rubocop/cop/style/array_intersect.rb +13 -5
- data/lib/rubocop/cop/style/attr.rb +11 -1
- data/lib/rubocop/cop/style/begin_block.rb +1 -2
- data/lib/rubocop/cop/style/block_comments.rb +1 -1
- data/lib/rubocop/cop/style/block_delimiters.rb +5 -4
- data/lib/rubocop/cop/style/class_and_module_children.rb +1 -1
- data/lib/rubocop/cop/style/class_equality_comparison.rb +24 -39
- data/lib/rubocop/cop/style/collection_compact.rb +16 -6
- data/lib/rubocop/cop/style/collection_methods.rb +2 -0
- data/lib/rubocop/cop/style/colon_method_call.rb +2 -2
- data/lib/rubocop/cop/style/combinable_loops.rb +30 -8
- data/lib/rubocop/cop/style/concat_array_literals.rb +1 -1
- data/lib/rubocop/cop/style/conditional_assignment.rb +5 -3
- data/lib/rubocop/cop/style/copyright.rb +5 -2
- data/lib/rubocop/cop/style/dir.rb +1 -1
- data/lib/rubocop/cop/style/dir_empty.rb +8 -14
- data/lib/rubocop/cop/style/document_dynamic_eval_definition.rb +1 -1
- data/lib/rubocop/cop/style/documentation.rb +1 -1
- data/lib/rubocop/cop/style/empty_case_condition.rb +6 -1
- data/lib/rubocop/cop/style/eval_with_location.rb +5 -5
- data/lib/rubocop/cop/style/exact_regexp_match.rb +68 -0
- data/lib/rubocop/cop/style/file_read.rb +2 -2
- data/lib/rubocop/cop/style/for.rb +1 -1
- data/lib/rubocop/cop/style/format_string.rb +24 -3
- data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +3 -1
- data/lib/rubocop/cop/style/guard_clause.rb +28 -0
- data/lib/rubocop/cop/style/hash_conversion.rb +10 -0
- data/lib/rubocop/cop/style/hash_each_methods.rb +1 -22
- data/lib/rubocop/cop/style/hash_except.rb +19 -8
- data/lib/rubocop/cop/style/hash_transform_keys.rb +2 -2
- data/lib/rubocop/cop/style/hash_transform_values.rb +2 -2
- data/lib/rubocop/cop/style/identical_conditional_branches.rb +23 -5
- data/lib/rubocop/cop/style/if_inside_else.rb +6 -0
- data/lib/rubocop/cop/style/if_unless_modifier.rb +3 -0
- data/lib/rubocop/cop/style/if_with_semicolon.rb +2 -2
- data/lib/rubocop/cop/style/invertible_unless_condition.rb +10 -6
- data/lib/rubocop/cop/style/lambda.rb +3 -3
- data/lib/rubocop/cop/style/lambda_call.rb +5 -0
- data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +11 -5
- data/lib/rubocop/cop/style/mixin_grouping.rb +1 -1
- data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
- data/lib/rubocop/cop/style/multiline_ternary_operator.rb +1 -1
- data/lib/rubocop/cop/style/multiple_comparison.rb +14 -0
- data/lib/rubocop/cop/style/nested_ternary_operator.rb +3 -11
- data/lib/rubocop/cop/style/numeric_literals.rb +1 -1
- data/lib/rubocop/cop/style/open_struct_use.rb +1 -1
- data/lib/rubocop/cop/style/operator_method_call.rb +6 -0
- data/lib/rubocop/cop/style/percent_literal_delimiters.rb +1 -1
- data/lib/rubocop/cop/style/preferred_hash_methods.rb +1 -1
- data/lib/rubocop/cop/style/redundant_argument.rb +6 -1
- data/lib/rubocop/cop/style/redundant_array_constructor.rb +77 -0
- data/lib/rubocop/cop/style/redundant_begin.rb +10 -2
- data/lib/rubocop/cop/style/redundant_conditional.rb +2 -10
- data/lib/rubocop/cop/style/redundant_current_directory_in_path.rb +38 -0
- data/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb +86 -5
- data/lib/rubocop/cop/style/redundant_exception.rb +32 -12
- data/lib/rubocop/cop/style/redundant_filter_chain.rb +117 -0
- data/lib/rubocop/cop/style/redundant_line_continuation.rb +7 -3
- data/lib/rubocop/cop/style/redundant_parentheses.rb +25 -7
- data/lib/rubocop/cop/style/redundant_regexp_argument.rb +100 -0
- data/lib/rubocop/cop/style/redundant_regexp_constructor.rb +46 -0
- data/lib/rubocop/cop/style/redundant_regexp_escape.rb +2 -1
- data/lib/rubocop/cop/style/redundant_return.rb +7 -2
- data/lib/rubocop/cop/style/redundant_self_assignment_branch.rb +8 -1
- data/lib/rubocop/cop/style/redundant_sort.rb +1 -1
- data/lib/rubocop/cop/style/redundant_string_escape.rb +2 -0
- data/lib/rubocop/cop/style/regexp_literal.rb +11 -2
- data/lib/rubocop/cop/style/require_order.rb +11 -5
- data/lib/rubocop/cop/style/rescue_modifier.rb +1 -3
- data/lib/rubocop/cop/style/return_nil.rb +6 -2
- data/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb +95 -0
- data/lib/rubocop/cop/style/select_by_regexp.rb +15 -5
- data/lib/rubocop/cop/style/semicolon.rb +12 -4
- data/lib/rubocop/cop/style/signal_exception.rb +1 -1
- data/lib/rubocop/cop/style/single_line_do_end_block.rb +65 -0
- data/lib/rubocop/cop/style/single_line_methods.rb +1 -1
- data/lib/rubocop/cop/style/sole_nested_conditional.rb +6 -2
- data/lib/rubocop/cop/style/special_global_vars.rb +3 -4
- data/lib/rubocop/cop/style/string_literals_in_interpolation.rb +30 -5
- data/lib/rubocop/cop/style/symbol_array.rb +35 -15
- data/lib/rubocop/cop/style/yaml_file_read.rb +66 -0
- data/lib/rubocop/cop/style/yoda_condition.rb +4 -2
- data/lib/rubocop/cop/style/yoda_expression.rb +8 -7
- data/lib/rubocop/cop/team.rb +1 -1
- data/lib/rubocop/cop/util.rb +1 -1
- data/lib/rubocop/cop/utils/regexp_ranges.rb +113 -0
- data/lib/rubocop/cop/variable_force/assignment.rb +45 -4
- data/lib/rubocop/cop/variable_force/variable_table.rb +2 -2
- data/lib/rubocop/cop/variable_force.rb +1 -0
- data/lib/rubocop/cops_documentation_generator.rb +1 -1
- data/lib/rubocop/ext/regexp_parser.rb +4 -1
- data/lib/rubocop/file_finder.rb +4 -7
- data/lib/rubocop/formatter/junit_formatter.rb +1 -1
- data/lib/rubocop/lsp/logger.rb +22 -0
- data/lib/rubocop/lsp/routes.rb +246 -0
- data/lib/rubocop/lsp/runtime.rb +99 -0
- data/lib/rubocop/lsp/server.rb +68 -0
- data/lib/rubocop/lsp/severity.rb +27 -0
- data/lib/rubocop/magic_comment.rb +12 -10
- data/lib/rubocop/options.rb +11 -1
- data/lib/rubocop/result_cache.rb +5 -1
- data/lib/rubocop/rspec/cop_helper.rb +1 -1
- data/lib/rubocop/rspec/shared_contexts.rb +2 -3
- data/lib/rubocop/runner.rb +5 -3
- data/lib/rubocop/server/cache.rb +1 -0
- data/lib/rubocop/server/client_command/exec.rb +3 -2
- data/lib/rubocop/string_interpreter.rb +3 -3
- data/lib/rubocop/target_finder.rb +7 -3
- data/lib/rubocop/target_ruby.rb +12 -7
- data/lib/rubocop/version.rb +10 -6
- data/lib/rubocop.rb +15 -0
- metadata +63 -15
metadata
CHANGED
@@ -1,17 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.57.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: 2023-
|
13
|
+
date: 2023-10-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: base64
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.1.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 0.1.1
|
15
29
|
- !ruby/object:Gem::Dependency
|
16
30
|
name: json
|
17
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -26,6 +40,20 @@ dependencies:
|
|
26
40
|
- - "~>"
|
27
41
|
- !ruby/object:Gem::Version
|
28
42
|
version: '2.3'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: language_server-protocol
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 3.17.0
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.17.0
|
29
57
|
- !ruby/object:Gem::Dependency
|
30
58
|
name: parallel
|
31
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,14 +74,14 @@ dependencies:
|
|
46
74
|
requirements:
|
47
75
|
- - ">="
|
48
76
|
- !ruby/object:Gem::Version
|
49
|
-
version: 3.2.
|
77
|
+
version: 3.2.2.4
|
50
78
|
type: :runtime
|
51
79
|
prerelease: false
|
52
80
|
version_requirements: !ruby/object:Gem::Requirement
|
53
81
|
requirements:
|
54
82
|
- - ">="
|
55
83
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.2.
|
84
|
+
version: 3.2.2.4
|
57
85
|
- !ruby/object:Gem::Dependency
|
58
86
|
name: rainbow
|
59
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,7 +148,7 @@ dependencies:
|
|
120
148
|
requirements:
|
121
149
|
- - ">="
|
122
150
|
- !ruby/object:Gem::Version
|
123
|
-
version: 1.28.
|
151
|
+
version: 1.28.1
|
124
152
|
- - "<"
|
125
153
|
- !ruby/object:Gem::Version
|
126
154
|
version: '2.0'
|
@@ -130,7 +158,7 @@ dependencies:
|
|
130
158
|
requirements:
|
131
159
|
- - ">="
|
132
160
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.28.
|
161
|
+
version: 1.28.1
|
134
162
|
- - "<"
|
135
163
|
- !ruby/object:Gem::Version
|
136
164
|
version: '2.0'
|
@@ -168,9 +196,9 @@ dependencies:
|
|
168
196
|
- - "<"
|
169
197
|
- !ruby/object:Gem::Version
|
170
198
|
version: '3.0'
|
171
|
-
description: |
|
172
|
-
|
173
|
-
|
199
|
+
description: |
|
200
|
+
RuboCop is a Ruby code style checking and code formatting tool.
|
201
|
+
It aims to enforce the community-driven Ruby Style Guide.
|
174
202
|
email: rubocop@googlegroups.com
|
175
203
|
executables:
|
176
204
|
- rubocop
|
@@ -198,6 +226,7 @@ files:
|
|
198
226
|
- lib/rubocop/cli/command/base.rb
|
199
227
|
- lib/rubocop/cli/command/execute_runner.rb
|
200
228
|
- lib/rubocop/cli/command/init_dotfile.rb
|
229
|
+
- lib/rubocop/cli/command/lsp.rb
|
201
230
|
- lib/rubocop/cli/command/show_cops.rb
|
202
231
|
- lib/rubocop/cli/command/show_docs_url.rb
|
203
232
|
- lib/rubocop/cli/command/suggest_extensions.rb
|
@@ -225,6 +254,7 @@ files:
|
|
225
254
|
- lib/rubocop/cop/badge.rb
|
226
255
|
- lib/rubocop/cop/base.rb
|
227
256
|
- lib/rubocop/cop/bundler/duplicated_gem.rb
|
257
|
+
- lib/rubocop/cop/bundler/duplicated_group.rb
|
228
258
|
- lib/rubocop/cop/bundler/gem_comment.rb
|
229
259
|
- lib/rubocop/cop/bundler/gem_filename.rb
|
230
260
|
- lib/rubocop/cop/bundler/gem_version.rb
|
@@ -456,6 +486,7 @@ files:
|
|
456
486
|
- lib/rubocop/cop/lint/loop.rb
|
457
487
|
- lib/rubocop/cop/lint/missing_cop_enable_directive.rb
|
458
488
|
- lib/rubocop/cop/lint/missing_super.rb
|
489
|
+
- lib/rubocop/cop/lint/mixed_case_range.rb
|
459
490
|
- lib/rubocop/cop/lint/mixed_regexp_capture_types.rb
|
460
491
|
- lib/rubocop/cop/lint/multiple_comparison.rb
|
461
492
|
- lib/rubocop/cop/lint/nested_method_definition.rb
|
@@ -478,6 +509,7 @@ files:
|
|
478
509
|
- lib/rubocop/cop/lint/redundant_cop_disable_directive.rb
|
479
510
|
- lib/rubocop/cop/lint/redundant_cop_enable_directive.rb
|
480
511
|
- lib/rubocop/cop/lint/redundant_dir_glob_sort.rb
|
512
|
+
- lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb
|
481
513
|
- lib/rubocop/cop/lint/redundant_require_statement.rb
|
482
514
|
- lib/rubocop/cop/lint/redundant_safe_navigation.rb
|
483
515
|
- lib/rubocop/cop/lint/redundant_splat_expansion.rb
|
@@ -550,6 +582,7 @@ files:
|
|
550
582
|
- lib/rubocop/cop/mixin/allowed_identifiers.rb
|
551
583
|
- lib/rubocop/cop/mixin/allowed_methods.rb
|
552
584
|
- lib/rubocop/cop/mixin/allowed_pattern.rb
|
585
|
+
- lib/rubocop/cop/mixin/allowed_receivers.rb
|
553
586
|
- lib/rubocop/cop/mixin/annotation_comment.rb
|
554
587
|
- lib/rubocop/cop/mixin/array_min_size.rb
|
555
588
|
- lib/rubocop/cop/mixin/array_syntax.rb
|
@@ -710,6 +743,7 @@ files:
|
|
710
743
|
- lib/rubocop/cop/style/env_home.rb
|
711
744
|
- lib/rubocop/cop/style/eval_with_location.rb
|
712
745
|
- lib/rubocop/cop/style/even_odd.rb
|
746
|
+
- lib/rubocop/cop/style/exact_regexp_match.rb
|
713
747
|
- lib/rubocop/cop/style/expand_path_arguments.rb
|
714
748
|
- lib/rubocop/cop/style/explicit_block_argument.rb
|
715
749
|
- lib/rubocop/cop/style/exponential_notation.rb
|
@@ -814,17 +848,20 @@ files:
|
|
814
848
|
- lib/rubocop/cop/style/raise_args.rb
|
815
849
|
- lib/rubocop/cop/style/random_with_offset.rb
|
816
850
|
- lib/rubocop/cop/style/redundant_argument.rb
|
851
|
+
- lib/rubocop/cop/style/redundant_array_constructor.rb
|
817
852
|
- lib/rubocop/cop/style/redundant_assignment.rb
|
818
853
|
- lib/rubocop/cop/style/redundant_begin.rb
|
819
854
|
- lib/rubocop/cop/style/redundant_capital_w.rb
|
820
855
|
- lib/rubocop/cop/style/redundant_condition.rb
|
821
856
|
- lib/rubocop/cop/style/redundant_conditional.rb
|
822
857
|
- lib/rubocop/cop/style/redundant_constant_base.rb
|
858
|
+
- lib/rubocop/cop/style/redundant_current_directory_in_path.rb
|
823
859
|
- lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb
|
824
860
|
- lib/rubocop/cop/style/redundant_each.rb
|
825
861
|
- lib/rubocop/cop/style/redundant_exception.rb
|
826
862
|
- lib/rubocop/cop/style/redundant_fetch_block.rb
|
827
863
|
- lib/rubocop/cop/style/redundant_file_extension_in_require.rb
|
864
|
+
- lib/rubocop/cop/style/redundant_filter_chain.rb
|
828
865
|
- lib/rubocop/cop/style/redundant_freeze.rb
|
829
866
|
- lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb
|
830
867
|
- lib/rubocop/cop/style/redundant_initialize.rb
|
@@ -832,7 +869,9 @@ files:
|
|
832
869
|
- lib/rubocop/cop/style/redundant_line_continuation.rb
|
833
870
|
- lib/rubocop/cop/style/redundant_parentheses.rb
|
834
871
|
- lib/rubocop/cop/style/redundant_percent_q.rb
|
872
|
+
- lib/rubocop/cop/style/redundant_regexp_argument.rb
|
835
873
|
- lib/rubocop/cop/style/redundant_regexp_character_class.rb
|
874
|
+
- lib/rubocop/cop/style/redundant_regexp_constructor.rb
|
836
875
|
- lib/rubocop/cop/style/redundant_regexp_escape.rb
|
837
876
|
- lib/rubocop/cop/style/redundant_return.rb
|
838
877
|
- lib/rubocop/cop/style/redundant_self.rb
|
@@ -846,6 +885,7 @@ files:
|
|
846
885
|
- lib/rubocop/cop/style/rescue_modifier.rb
|
847
886
|
- lib/rubocop/cop/style/rescue_standard_error.rb
|
848
887
|
- lib/rubocop/cop/style/return_nil.rb
|
888
|
+
- lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb
|
849
889
|
- lib/rubocop/cop/style/safe_navigation.rb
|
850
890
|
- lib/rubocop/cop/style/sample.rb
|
851
891
|
- lib/rubocop/cop/style/select_by_regexp.rb
|
@@ -855,6 +895,7 @@ files:
|
|
855
895
|
- lib/rubocop/cop/style/signal_exception.rb
|
856
896
|
- lib/rubocop/cop/style/single_argument_dig.rb
|
857
897
|
- lib/rubocop/cop/style/single_line_block_params.rb
|
898
|
+
- lib/rubocop/cop/style/single_line_do_end_block.rb
|
858
899
|
- lib/rubocop/cop/style/single_line_methods.rb
|
859
900
|
- lib/rubocop/cop/style/slicing_with_range.rb
|
860
901
|
- lib/rubocop/cop/style/sole_nested_conditional.rb
|
@@ -894,12 +935,14 @@ files:
|
|
894
935
|
- lib/rubocop/cop/style/while_until_do.rb
|
895
936
|
- lib/rubocop/cop/style/while_until_modifier.rb
|
896
937
|
- lib/rubocop/cop/style/word_array.rb
|
938
|
+
- lib/rubocop/cop/style/yaml_file_read.rb
|
897
939
|
- lib/rubocop/cop/style/yoda_condition.rb
|
898
940
|
- lib/rubocop/cop/style/yoda_expression.rb
|
899
941
|
- lib/rubocop/cop/style/zero_length_predicate.rb
|
900
942
|
- lib/rubocop/cop/team.rb
|
901
943
|
- lib/rubocop/cop/util.rb
|
902
944
|
- lib/rubocop/cop/utils/format_string.rb
|
945
|
+
- lib/rubocop/cop/utils/regexp_ranges.rb
|
903
946
|
- lib/rubocop/cop/variable_force.rb
|
904
947
|
- lib/rubocop/cop/variable_force/assignment.rb
|
905
948
|
- lib/rubocop/cop/variable_force/branch.rb
|
@@ -944,6 +987,11 @@ files:
|
|
944
987
|
- lib/rubocop/formatter/text_util.rb
|
945
988
|
- lib/rubocop/formatter/worst_offenders_formatter.rb
|
946
989
|
- lib/rubocop/lockfile.rb
|
990
|
+
- lib/rubocop/lsp/logger.rb
|
991
|
+
- lib/rubocop/lsp/routes.rb
|
992
|
+
- lib/rubocop/lsp/runtime.rb
|
993
|
+
- lib/rubocop/lsp/server.rb
|
994
|
+
- lib/rubocop/lsp/severity.rb
|
947
995
|
- lib/rubocop/magic_comment.rb
|
948
996
|
- lib/rubocop/name_similarity.rb
|
949
997
|
- lib/rubocop/options.rb
|
@@ -991,10 +1039,10 @@ metadata:
|
|
991
1039
|
homepage_uri: https://rubocop.org/
|
992
1040
|
changelog_uri: https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md
|
993
1041
|
source_code_uri: https://github.com/rubocop/rubocop/
|
994
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
1042
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.57/
|
995
1043
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
996
1044
|
rubygems_mfa_required: 'true'
|
997
|
-
post_install_message:
|
1045
|
+
post_install_message:
|
998
1046
|
rdoc_options: []
|
999
1047
|
require_paths:
|
1000
1048
|
- lib
|
@@ -1002,15 +1050,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1002
1050
|
requirements:
|
1003
1051
|
- - ">="
|
1004
1052
|
- !ruby/object:Gem::Version
|
1005
|
-
version: 2.
|
1053
|
+
version: 2.7.0
|
1006
1054
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1007
1055
|
requirements:
|
1008
1056
|
- - ">="
|
1009
1057
|
- !ruby/object:Gem::Version
|
1010
1058
|
version: '0'
|
1011
1059
|
requirements: []
|
1012
|
-
rubygems_version: 3.
|
1013
|
-
signing_key:
|
1060
|
+
rubygems_version: 3.3.7
|
1061
|
+
signing_key:
|
1014
1062
|
specification_version: 4
|
1015
1063
|
summary: Automatic Ruby code style checking tool.
|
1016
1064
|
test_files: []
|