rubocop 1.50.2 → 1.57.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -3
  3. data/config/default.yml +110 -14
  4. data/config/obsoletion.yml +5 -0
  5. data/lib/rubocop/cli/command/lsp.rb +19 -0
  6. data/lib/rubocop/cli.rb +4 -1
  7. data/lib/rubocop/config.rb +4 -0
  8. data/lib/rubocop/config_finder.rb +2 -2
  9. data/lib/rubocop/config_loader_resolver.rb +4 -3
  10. data/lib/rubocop/config_obsoletion/parameter_rule.rb +9 -1
  11. data/lib/rubocop/config_obsoletion.rb +2 -2
  12. data/lib/rubocop/cop/autocorrect_logic.rb +3 -1
  13. data/lib/rubocop/cop/base.rb +6 -2
  14. data/lib/rubocop/cop/bundler/duplicated_gem.rb +1 -0
  15. data/lib/rubocop/cop/bundler/duplicated_group.rb +127 -0
  16. data/lib/rubocop/cop/bundler/gem_comment.rb +1 -1
  17. data/lib/rubocop/cop/bundler/gem_version.rb +2 -2
  18. data/lib/rubocop/cop/bundler/ordered_gems.rb +9 -1
  19. data/lib/rubocop/cop/correctors/alignment_corrector.rb +1 -1
  20. data/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +7 -4
  21. data/lib/rubocop/cop/gemspec/dependency_version.rb +2 -2
  22. data/lib/rubocop/cop/gemspec/development_dependencies.rb +1 -1
  23. data/lib/rubocop/cop/gemspec/ordered_dependencies.rb +9 -1
  24. data/lib/rubocop/cop/generator/require_file_injector.rb +1 -1
  25. data/lib/rubocop/cop/internal_affairs/cop_description.rb +32 -8
  26. data/lib/rubocop/cop/internal_affairs/example_description.rb +42 -21
  27. data/lib/rubocop/cop/internal_affairs/location_line_equality_comparison.rb +3 -1
  28. data/lib/rubocop/cop/internal_affairs/node_matcher_directive.rb +5 -5
  29. data/lib/rubocop/cop/internal_affairs/redundant_method_dispatch_node.rb +11 -2
  30. data/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +2 -0
  31. data/lib/rubocop/cop/layout/class_structure.rb +7 -0
  32. data/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +1 -2
  33. data/lib/rubocop/cop/layout/dot_position.rb +1 -5
  34. data/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +42 -9
  35. data/lib/rubocop/cop/layout/empty_line_between_defs.rb +27 -4
  36. data/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +2 -0
  37. data/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +2 -2
  38. data/lib/rubocop/cop/layout/heredoc_indentation.rb +3 -0
  39. data/lib/rubocop/cop/layout/indentation_style.rb +1 -1
  40. data/lib/rubocop/cop/layout/indentation_width.rb +3 -3
  41. data/lib/rubocop/cop/layout/leading_comment_space.rb +1 -1
  42. data/lib/rubocop/cop/layout/line_continuation_leading_space.rb +17 -9
  43. data/lib/rubocop/cop/layout/line_continuation_spacing.rb +1 -1
  44. data/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb +2 -0
  45. data/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +18 -3
  46. data/lib/rubocop/cop/layout/redundant_line_break.rb +14 -4
  47. data/lib/rubocop/cop/layout/space_after_comma.rb +9 -1
  48. data/lib/rubocop/cop/layout/space_after_not.rb +1 -1
  49. data/lib/rubocop/cop/layout/space_around_method_call_operator.rb +2 -2
  50. data/lib/rubocop/cop/layout/space_around_operators.rb +3 -1
  51. data/lib/rubocop/cop/layout/space_inside_block_braces.rb +2 -0
  52. data/lib/rubocop/cop/layout/space_inside_parens.rb +1 -1
  53. data/lib/rubocop/cop/layout/space_inside_range_literal.rb +1 -1
  54. data/lib/rubocop/cop/layout/trailing_empty_lines.rb +5 -0
  55. data/lib/rubocop/cop/lint/ambiguous_block_association.rb +13 -1
  56. data/lib/rubocop/cop/lint/debugger.rb +18 -5
  57. data/lib/rubocop/cop/lint/duplicate_hash_key.rb +2 -1
  58. data/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb +46 -19
  59. data/lib/rubocop/cop/lint/empty_block.rb +1 -1
  60. data/lib/rubocop/cop/lint/erb_new_arguments.rb +3 -4
  61. data/lib/rubocop/cop/lint/heredoc_method_call_position.rb +1 -1
  62. data/lib/rubocop/cop/lint/identity_comparison.rb +0 -1
  63. data/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb +5 -3
  64. data/lib/rubocop/cop/lint/inherit_exception.rb +9 -0
  65. data/lib/rubocop/cop/lint/lambda_without_literal_block.rb +1 -1
  66. data/lib/rubocop/cop/lint/literal_in_interpolation.rb +1 -1
  67. data/lib/rubocop/cop/lint/missing_super.rb +34 -5
  68. data/lib/rubocop/cop/lint/mixed_case_range.rb +111 -0
  69. data/lib/rubocop/cop/lint/non_atomic_file_operation.rb +10 -7
  70. data/lib/rubocop/cop/lint/number_conversion.rb +5 -0
  71. data/lib/rubocop/cop/lint/numbered_parameter_assignment.rb +2 -2
  72. data/lib/rubocop/cop/lint/ordered_magic_comments.rb +0 -1
  73. data/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb +2 -2
  74. data/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb +130 -0
  75. data/lib/rubocop/cop/lint/redundant_require_statement.rb +12 -3
  76. data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +20 -4
  77. data/lib/rubocop/cop/lint/redundant_string_coercion.rb +1 -1
  78. data/lib/rubocop/cop/lint/safe_navigation_chain.rb +11 -4
  79. data/lib/rubocop/cop/lint/send_with_mixin_argument.rb +1 -2
  80. data/lib/rubocop/cop/lint/shadowed_exception.rb +5 -11
  81. data/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +7 -1
  82. data/lib/rubocop/cop/lint/struct_new_override.rb +12 -12
  83. data/lib/rubocop/cop/lint/suppressed_exception.rb +2 -2
  84. data/lib/rubocop/cop/lint/symbol_conversion.rb +1 -1
  85. data/lib/rubocop/cop/lint/to_enum_arguments.rb +5 -3
  86. data/lib/rubocop/cop/lint/top_level_return_with_argument.rb +23 -9
  87. data/lib/rubocop/cop/lint/useless_assignment.rb +94 -10
  88. data/lib/rubocop/cop/lint/void.rb +57 -7
  89. data/lib/rubocop/cop/metrics/block_length.rb +1 -1
  90. data/lib/rubocop/cop/metrics/class_length.rb +2 -2
  91. data/lib/rubocop/cop/metrics/method_length.rb +1 -1
  92. data/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +1 -2
  93. data/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +32 -4
  94. data/lib/rubocop/cop/migration/department_name.rb +2 -2
  95. data/lib/rubocop/cop/mixin/allowed_receivers.rb +34 -0
  96. data/lib/rubocop/cop/mixin/comments_help.rb +7 -3
  97. data/lib/rubocop/cop/mixin/def_node.rb +1 -1
  98. data/lib/rubocop/cop/mixin/end_keyword_alignment.rb +1 -1
  99. data/lib/rubocop/cop/mixin/heredoc.rb +6 -2
  100. data/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +3 -2
  101. data/lib/rubocop/cop/mixin/percent_literal.rb +1 -1
  102. data/lib/rubocop/cop/mixin/preceding_following_alignment.rb +5 -7
  103. data/lib/rubocop/cop/mixin/space_after_punctuation.rb +1 -1
  104. data/lib/rubocop/cop/mixin/string_help.rb +4 -2
  105. data/lib/rubocop/cop/mixin/trailing_comma.rb +1 -1
  106. data/lib/rubocop/cop/naming/block_forwarding.rb +1 -1
  107. data/lib/rubocop/cop/naming/constant_name.rb +1 -1
  108. data/lib/rubocop/cop/naming/file_name.rb +1 -1
  109. data/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +3 -1
  110. data/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +25 -10
  111. data/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +11 -3
  112. data/lib/rubocop/cop/naming/variable_name.rb +6 -1
  113. data/lib/rubocop/cop/style/accessor_grouping.rb +5 -1
  114. data/lib/rubocop/cop/style/alias.rb +9 -8
  115. data/lib/rubocop/cop/style/arguments_forwarding.rb +280 -63
  116. data/lib/rubocop/cop/style/array_intersect.rb +13 -5
  117. data/lib/rubocop/cop/style/attr.rb +11 -1
  118. data/lib/rubocop/cop/style/begin_block.rb +1 -2
  119. data/lib/rubocop/cop/style/block_comments.rb +1 -1
  120. data/lib/rubocop/cop/style/block_delimiters.rb +5 -4
  121. data/lib/rubocop/cop/style/class_and_module_children.rb +1 -1
  122. data/lib/rubocop/cop/style/class_equality_comparison.rb +24 -39
  123. data/lib/rubocop/cop/style/collection_compact.rb +16 -6
  124. data/lib/rubocop/cop/style/collection_methods.rb +2 -0
  125. data/lib/rubocop/cop/style/colon_method_call.rb +2 -2
  126. data/lib/rubocop/cop/style/combinable_loops.rb +30 -8
  127. data/lib/rubocop/cop/style/concat_array_literals.rb +1 -1
  128. data/lib/rubocop/cop/style/conditional_assignment.rb +5 -3
  129. data/lib/rubocop/cop/style/copyright.rb +5 -2
  130. data/lib/rubocop/cop/style/dir.rb +1 -1
  131. data/lib/rubocop/cop/style/dir_empty.rb +8 -14
  132. data/lib/rubocop/cop/style/document_dynamic_eval_definition.rb +1 -1
  133. data/lib/rubocop/cop/style/documentation.rb +1 -1
  134. data/lib/rubocop/cop/style/empty_case_condition.rb +6 -1
  135. data/lib/rubocop/cop/style/eval_with_location.rb +5 -5
  136. data/lib/rubocop/cop/style/exact_regexp_match.rb +68 -0
  137. data/lib/rubocop/cop/style/file_read.rb +2 -2
  138. data/lib/rubocop/cop/style/for.rb +1 -1
  139. data/lib/rubocop/cop/style/format_string.rb +24 -3
  140. data/lib/rubocop/cop/style/frozen_string_literal_comment.rb +3 -1
  141. data/lib/rubocop/cop/style/guard_clause.rb +28 -0
  142. data/lib/rubocop/cop/style/hash_conversion.rb +10 -0
  143. data/lib/rubocop/cop/style/hash_each_methods.rb +1 -22
  144. data/lib/rubocop/cop/style/hash_except.rb +19 -8
  145. data/lib/rubocop/cop/style/hash_transform_keys.rb +2 -2
  146. data/lib/rubocop/cop/style/hash_transform_values.rb +2 -2
  147. data/lib/rubocop/cop/style/identical_conditional_branches.rb +23 -5
  148. data/lib/rubocop/cop/style/if_inside_else.rb +6 -0
  149. data/lib/rubocop/cop/style/if_unless_modifier.rb +3 -0
  150. data/lib/rubocop/cop/style/if_with_semicolon.rb +2 -2
  151. data/lib/rubocop/cop/style/invertible_unless_condition.rb +10 -6
  152. data/lib/rubocop/cop/style/lambda.rb +3 -3
  153. data/lib/rubocop/cop/style/lambda_call.rb +5 -0
  154. data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +11 -5
  155. data/lib/rubocop/cop/style/mixin_grouping.rb +1 -1
  156. data/lib/rubocop/cop/style/multiline_block_chain.rb +1 -1
  157. data/lib/rubocop/cop/style/multiline_ternary_operator.rb +1 -1
  158. data/lib/rubocop/cop/style/multiple_comparison.rb +14 -0
  159. data/lib/rubocop/cop/style/nested_ternary_operator.rb +3 -11
  160. data/lib/rubocop/cop/style/numeric_literals.rb +1 -1
  161. data/lib/rubocop/cop/style/open_struct_use.rb +1 -1
  162. data/lib/rubocop/cop/style/operator_method_call.rb +6 -0
  163. data/lib/rubocop/cop/style/percent_literal_delimiters.rb +1 -1
  164. data/lib/rubocop/cop/style/preferred_hash_methods.rb +1 -1
  165. data/lib/rubocop/cop/style/redundant_argument.rb +6 -1
  166. data/lib/rubocop/cop/style/redundant_array_constructor.rb +77 -0
  167. data/lib/rubocop/cop/style/redundant_begin.rb +10 -2
  168. data/lib/rubocop/cop/style/redundant_conditional.rb +2 -10
  169. data/lib/rubocop/cop/style/redundant_current_directory_in_path.rb +38 -0
  170. data/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb +86 -5
  171. data/lib/rubocop/cop/style/redundant_exception.rb +32 -12
  172. data/lib/rubocop/cop/style/redundant_filter_chain.rb +117 -0
  173. data/lib/rubocop/cop/style/redundant_line_continuation.rb +7 -3
  174. data/lib/rubocop/cop/style/redundant_parentheses.rb +25 -7
  175. data/lib/rubocop/cop/style/redundant_regexp_argument.rb +100 -0
  176. data/lib/rubocop/cop/style/redundant_regexp_constructor.rb +46 -0
  177. data/lib/rubocop/cop/style/redundant_regexp_escape.rb +2 -1
  178. data/lib/rubocop/cop/style/redundant_return.rb +7 -2
  179. data/lib/rubocop/cop/style/redundant_self_assignment_branch.rb +8 -1
  180. data/lib/rubocop/cop/style/redundant_sort.rb +1 -1
  181. data/lib/rubocop/cop/style/redundant_string_escape.rb +2 -0
  182. data/lib/rubocop/cop/style/regexp_literal.rb +11 -2
  183. data/lib/rubocop/cop/style/require_order.rb +11 -5
  184. data/lib/rubocop/cop/style/rescue_modifier.rb +1 -3
  185. data/lib/rubocop/cop/style/return_nil.rb +6 -2
  186. data/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb +95 -0
  187. data/lib/rubocop/cop/style/select_by_regexp.rb +15 -5
  188. data/lib/rubocop/cop/style/semicolon.rb +12 -4
  189. data/lib/rubocop/cop/style/signal_exception.rb +1 -1
  190. data/lib/rubocop/cop/style/single_line_do_end_block.rb +65 -0
  191. data/lib/rubocop/cop/style/single_line_methods.rb +1 -1
  192. data/lib/rubocop/cop/style/sole_nested_conditional.rb +6 -2
  193. data/lib/rubocop/cop/style/special_global_vars.rb +3 -4
  194. data/lib/rubocop/cop/style/string_literals_in_interpolation.rb +30 -5
  195. data/lib/rubocop/cop/style/symbol_array.rb +35 -15
  196. data/lib/rubocop/cop/style/yaml_file_read.rb +66 -0
  197. data/lib/rubocop/cop/style/yoda_condition.rb +4 -2
  198. data/lib/rubocop/cop/style/yoda_expression.rb +8 -7
  199. data/lib/rubocop/cop/team.rb +1 -1
  200. data/lib/rubocop/cop/util.rb +1 -1
  201. data/lib/rubocop/cop/utils/regexp_ranges.rb +113 -0
  202. data/lib/rubocop/cop/variable_force/assignment.rb +45 -4
  203. data/lib/rubocop/cop/variable_force/variable_table.rb +2 -2
  204. data/lib/rubocop/cop/variable_force.rb +1 -0
  205. data/lib/rubocop/cops_documentation_generator.rb +1 -1
  206. data/lib/rubocop/ext/regexp_parser.rb +4 -1
  207. data/lib/rubocop/file_finder.rb +4 -7
  208. data/lib/rubocop/formatter/junit_formatter.rb +1 -1
  209. data/lib/rubocop/lsp/logger.rb +22 -0
  210. data/lib/rubocop/lsp/routes.rb +246 -0
  211. data/lib/rubocop/lsp/runtime.rb +99 -0
  212. data/lib/rubocop/lsp/server.rb +68 -0
  213. data/lib/rubocop/lsp/severity.rb +27 -0
  214. data/lib/rubocop/magic_comment.rb +12 -10
  215. data/lib/rubocop/options.rb +11 -1
  216. data/lib/rubocop/result_cache.rb +5 -1
  217. data/lib/rubocop/rspec/cop_helper.rb +1 -1
  218. data/lib/rubocop/rspec/shared_contexts.rb +2 -3
  219. data/lib/rubocop/runner.rb +5 -3
  220. data/lib/rubocop/server/cache.rb +1 -0
  221. data/lib/rubocop/server/client_command/exec.rb +3 -2
  222. data/lib/rubocop/string_interpreter.rb +3 -3
  223. data/lib/rubocop/target_finder.rb +7 -3
  224. data/lib/rubocop/target_ruby.rb +12 -7
  225. data/lib/rubocop/version.rb +10 -6
  226. data/lib/rubocop.rb +15 -0
  227. 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.50.2
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-04-17 00:00:00.000000000 Z
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.0.0
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.0.0
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.0
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.0
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: |2
172
- RuboCop is a Ruby code style checking and code formatting tool.
173
- It aims to enforce the community-driven Ruby Style Guide.
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.50/
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.6.0
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.4.6
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: []