rubocop 1.84.2 → 1.85.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/config/default.yml +83 -4
- data/config/obsoletion.yml +5 -0
- data/lib/rubocop/cli/command/mcp.rb +19 -0
- data/lib/rubocop/cli.rb +6 -3
- data/lib/rubocop/config_obsoletion/extracted_cop.rb +4 -2
- data/lib/rubocop/cop/correctors/condition_corrector.rb +1 -1
- data/lib/rubocop/cop/correctors/percent_literal_corrector.rb +2 -2
- data/lib/rubocop/cop/gemspec/require_mfa.rb +1 -1
- data/lib/rubocop/cop/internal_affairs/itblock_handler.rb +69 -0
- data/lib/rubocop/cop/internal_affairs.rb +1 -0
- data/lib/rubocop/cop/layout/argument_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/array_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +12 -2
- data/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +16 -2
- data/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +16 -2
- data/lib/rubocop/cop/layout/first_hash_element_indentation.rb +7 -1
- data/lib/rubocop/cop/layout/hash_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/indentation_width.rb +1 -1
- data/lib/rubocop/cop/layout/multiline_assignment_layout.rb +9 -2
- data/lib/rubocop/cop/layout/parameter_alignment.rb +1 -1
- data/lib/rubocop/cop/layout/redundant_line_break.rb +1 -1
- data/lib/rubocop/cop/layout/space_around_block_parameters.rb +1 -1
- data/lib/rubocop/cop/layout/space_around_keyword.rb +1 -1
- data/lib/rubocop/cop/lint/constant_resolution.rb +1 -1
- data/lib/rubocop/cop/lint/data_define_override.rb +63 -0
- data/lib/rubocop/cop/lint/empty_block.rb +1 -1
- data/lib/rubocop/cop/lint/interpolation_check.rb +7 -2
- data/lib/rubocop/cop/lint/next_without_accumulator.rb +2 -0
- data/lib/rubocop/cop/lint/non_deterministic_require_order.rb +3 -1
- data/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb +0 -9
- data/lib/rubocop/cop/lint/redundant_safe_navigation.rb +7 -6
- data/lib/rubocop/cop/lint/safe_navigation_consistency.rb +7 -1
- data/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb +1 -0
- data/lib/rubocop/cop/lint/unreachable_pattern_branch.rb +113 -0
- data/lib/rubocop/cop/lint/useless_assignment.rb +1 -1
- data/lib/rubocop/cop/lint/void.rb +32 -12
- data/lib/rubocop/cop/metrics/block_nesting.rb +23 -0
- data/lib/rubocop/cop/migration/department_name.rb +12 -1
- data/lib/rubocop/cop/mixin/check_line_breakable.rb +1 -1
- data/lib/rubocop/cop/mixin/check_single_line_suitability.rb +1 -1
- data/lib/rubocop/cop/mixin/hash_transform_method/autocorrection.rb +63 -0
- data/lib/rubocop/cop/mixin/hash_transform_method.rb +10 -60
- data/lib/rubocop/cop/naming/block_parameter_name.rb +1 -1
- data/lib/rubocop/cop/security/eval.rb +15 -2
- data/lib/rubocop/cop/style/accessor_grouping.rb +4 -2
- data/lib/rubocop/cop/style/alias.rb +4 -1
- data/lib/rubocop/cop/style/array_join.rb +4 -2
- data/lib/rubocop/cop/style/ascii_comments.rb +5 -2
- data/lib/rubocop/cop/style/attr.rb +5 -2
- data/lib/rubocop/cop/style/bare_percent_literals.rb +3 -1
- data/lib/rubocop/cop/style/begin_block.rb +3 -1
- data/lib/rubocop/cop/style/block_delimiters.rb +2 -2
- data/lib/rubocop/cop/style/case_equality.rb +4 -0
- data/lib/rubocop/cop/style/class_and_module_children.rb +10 -2
- data/lib/rubocop/cop/style/colon_method_call.rb +3 -1
- data/lib/rubocop/cop/style/copyright.rb +1 -1
- data/lib/rubocop/cop/style/each_for_simple_loop.rb +1 -1
- data/lib/rubocop/cop/style/each_with_object.rb +2 -0
- data/lib/rubocop/cop/style/empty_block_parameter.rb +1 -1
- data/lib/rubocop/cop/style/empty_class_definition.rb +21 -20
- data/lib/rubocop/cop/style/empty_lambda_parameter.rb +1 -1
- data/lib/rubocop/cop/style/encoding.rb +7 -1
- data/lib/rubocop/cop/style/end_block.rb +3 -1
- data/lib/rubocop/cop/style/endless_method.rb +8 -3
- data/lib/rubocop/cop/style/file_open.rb +63 -0
- data/lib/rubocop/cop/style/for.rb +3 -0
- data/lib/rubocop/cop/style/format_string_token.rb +29 -2
- data/lib/rubocop/cop/style/global_vars.rb +4 -1
- data/lib/rubocop/cop/style/hash_as_last_array_item.rb +21 -5
- data/lib/rubocop/cop/style/hash_transform_keys.rb +17 -7
- data/lib/rubocop/cop/style/hash_transform_values.rb +17 -7
- data/lib/rubocop/cop/style/if_unless_modifier.rb +3 -3
- data/lib/rubocop/cop/style/inline_comment.rb +4 -1
- data/lib/rubocop/cop/style/map_join.rb +123 -0
- data/lib/rubocop/cop/style/multiline_if_then.rb +3 -1
- data/lib/rubocop/cop/style/nil_comparison.rb +2 -3
- data/lib/rubocop/cop/style/nil_lambda.rb +1 -1
- data/lib/rubocop/cop/style/not.rb +2 -0
- data/lib/rubocop/cop/style/numeric_literals.rb +2 -1
- data/lib/rubocop/cop/style/one_class_per_file.rb +95 -0
- data/lib/rubocop/cop/style/one_line_conditional.rb +4 -3
- data/lib/rubocop/cop/style/parallel_assignment.rb +4 -0
- data/lib/rubocop/cop/style/partition_instead_of_double_select.rb +270 -0
- data/lib/rubocop/cop/style/percent_literal_delimiters.rb +2 -0
- data/lib/rubocop/cop/style/predicate_with_kind.rb +84 -0
- data/lib/rubocop/cop/style/proc.rb +3 -2
- data/lib/rubocop/cop/style/reduce_to_hash.rb +169 -0
- data/lib/rubocop/cop/style/redundant_begin.rb +3 -3
- data/lib/rubocop/cop/style/redundant_fetch_block.rb +1 -1
- data/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb +26 -10
- data/lib/rubocop/cop/style/redundant_min_max_by.rb +93 -0
- data/lib/rubocop/cop/style/redundant_parentheses.rb +6 -3
- data/lib/rubocop/cop/style/redundant_return.rb +3 -1
- data/lib/rubocop/cop/style/redundant_struct_keyword_init.rb +104 -0
- data/lib/rubocop/cop/style/select_by_kind.rb +158 -0
- data/lib/rubocop/cop/style/select_by_range.rb +197 -0
- data/lib/rubocop/cop/style/select_by_regexp.rb +51 -21
- data/lib/rubocop/cop/style/semicolon.rb +2 -0
- data/lib/rubocop/cop/style/single_line_block_params.rb +1 -1
- data/lib/rubocop/cop/style/single_line_do_end_block.rb +1 -1
- data/lib/rubocop/cop/style/single_line_methods.rb +3 -1
- data/lib/rubocop/cop/style/special_global_vars.rb +6 -1
- data/lib/rubocop/cop/style/tally_method.rb +181 -0
- data/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +1 -1
- data/lib/rubocop/cop/variable_force/branch.rb +2 -2
- data/lib/rubocop/directive_comment.rb +2 -1
- data/lib/rubocop/formatter/formatter_set.rb +1 -1
- data/lib/rubocop/lsp/diagnostic.rb +1 -0
- data/lib/rubocop/mcp/server.rb +174 -0
- data/lib/rubocop/options.rb +10 -1
- data/lib/rubocop/server/cache.rb +5 -7
- data/lib/rubocop/target_ruby.rb +18 -12
- data/lib/rubocop/version.rb +1 -1
- data/lib/rubocop.rb +14 -0
- metadata +34 -3
data/lib/rubocop/target_ruby.rb
CHANGED
|
@@ -160,21 +160,18 @@ module RuboCop
|
|
|
160
160
|
# The target ruby version may be found in a .ruby-version file.
|
|
161
161
|
# @api private
|
|
162
162
|
class RubyVersionFile < Source
|
|
163
|
-
RUBY_VERSION_FILENAME = '.ruby-version'
|
|
164
|
-
RUBY_VERSION_PATTERN = /\A(?:ruby-)?(?<version>\d+\.\d+)/.freeze
|
|
165
|
-
|
|
166
163
|
def name
|
|
167
|
-
"`#{
|
|
164
|
+
"`#{filename}`"
|
|
168
165
|
end
|
|
169
166
|
|
|
170
167
|
private
|
|
171
168
|
|
|
172
169
|
def filename
|
|
173
|
-
|
|
170
|
+
'.ruby-version'
|
|
174
171
|
end
|
|
175
172
|
|
|
176
173
|
def pattern
|
|
177
|
-
|
|
174
|
+
/\A(?:ruby-)?(?<version>\d+\.\d+)/.freeze
|
|
178
175
|
end
|
|
179
176
|
|
|
180
177
|
def find_version
|
|
@@ -193,21 +190,29 @@ module RuboCop
|
|
|
193
190
|
# starting with `ruby`.
|
|
194
191
|
# @api private
|
|
195
192
|
class ToolVersionsFile < RubyVersionFile
|
|
196
|
-
|
|
197
|
-
TOOL_VERSIONS_PATTERN = /^(?:ruby )(?<version>\d+\.\d+)/.freeze
|
|
193
|
+
private
|
|
198
194
|
|
|
199
|
-
def
|
|
200
|
-
|
|
195
|
+
def filename
|
|
196
|
+
'.tool-versions'
|
|
201
197
|
end
|
|
202
198
|
|
|
199
|
+
def pattern
|
|
200
|
+
/^(?:ruby )(?<version>\d+\.\d+)/.freeze
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# The target ruby version may be found in a mise.toml file, in a line
|
|
205
|
+
# starting with `ruby = "`.
|
|
206
|
+
# @api private
|
|
207
|
+
class MiseTomlFile < RubyVersionFile
|
|
203
208
|
private
|
|
204
209
|
|
|
205
210
|
def filename
|
|
206
|
-
|
|
211
|
+
'mise.toml'
|
|
207
212
|
end
|
|
208
213
|
|
|
209
214
|
def pattern
|
|
210
|
-
|
|
215
|
+
/^ruby = "(?<version>\d+\.\d+)/.freeze
|
|
211
216
|
end
|
|
212
217
|
end
|
|
213
218
|
|
|
@@ -275,6 +280,7 @@ module RuboCop
|
|
|
275
280
|
RuboCopConfig,
|
|
276
281
|
GemspecFile,
|
|
277
282
|
RubyVersionFile,
|
|
283
|
+
MiseTomlFile,
|
|
278
284
|
ToolVersionsFile,
|
|
279
285
|
BundlerLockFile,
|
|
280
286
|
Default
|
data/lib/rubocop/version.rb
CHANGED
data/lib/rubocop.rb
CHANGED
|
@@ -309,6 +309,7 @@ require_relative 'rubocop/cop/lint/constant_overwritten_in_rescue'
|
|
|
309
309
|
require_relative 'rubocop/cop/lint/constant_reassignment'
|
|
310
310
|
require_relative 'rubocop/cop/lint/constant_resolution'
|
|
311
311
|
require_relative 'rubocop/cop/lint/cop_directive_syntax'
|
|
312
|
+
require_relative 'rubocop/cop/lint/data_define_override'
|
|
312
313
|
require_relative 'rubocop/cop/lint/debugger'
|
|
313
314
|
require_relative 'rubocop/cop/lint/deprecated_class_methods'
|
|
314
315
|
require_relative 'rubocop/cop/lint/deprecated_constants'
|
|
@@ -426,6 +427,7 @@ require_relative 'rubocop/cop/lint/unified_integer'
|
|
|
426
427
|
require_relative 'rubocop/cop/lint/unmodified_reduce_accumulator'
|
|
427
428
|
require_relative 'rubocop/cop/lint/unreachable_code'
|
|
428
429
|
require_relative 'rubocop/cop/lint/unreachable_loop'
|
|
430
|
+
require_relative 'rubocop/cop/lint/unreachable_pattern_branch'
|
|
429
431
|
require_relative 'rubocop/cop/lint/unused_block_argument'
|
|
430
432
|
require_relative 'rubocop/cop/lint/unused_method_argument'
|
|
431
433
|
require_relative 'rubocop/cop/lint/uri_escape_unescape'
|
|
@@ -561,6 +563,7 @@ require_relative 'rubocop/cop/style/exponential_notation'
|
|
|
561
563
|
require_relative 'rubocop/cop/style/fetch_env_var'
|
|
562
564
|
require_relative 'rubocop/cop/style/file_empty'
|
|
563
565
|
require_relative 'rubocop/cop/style/file_null'
|
|
566
|
+
require_relative 'rubocop/cop/style/file_open'
|
|
564
567
|
require_relative 'rubocop/cop/style/file_read'
|
|
565
568
|
require_relative 'rubocop/cop/style/file_touch'
|
|
566
569
|
require_relative 'rubocop/cop/style/file_write'
|
|
@@ -592,6 +595,7 @@ require_relative 'rubocop/cop/style/if_with_semicolon'
|
|
|
592
595
|
require_relative 'rubocop/cop/style/implicit_runtime_error'
|
|
593
596
|
require_relative 'rubocop/cop/style/in_pattern_then'
|
|
594
597
|
require_relative 'rubocop/cop/style/infinite_loop'
|
|
598
|
+
require_relative 'rubocop/cop/style/reduce_to_hash'
|
|
595
599
|
require_relative 'rubocop/cop/style/inverse_methods'
|
|
596
600
|
require_relative 'rubocop/cop/style/inline_comment'
|
|
597
601
|
require_relative 'rubocop/cop/style/invertible_unless_condition'
|
|
@@ -605,6 +609,7 @@ require_relative 'rubocop/cop/style/lambda_call'
|
|
|
605
609
|
require_relative 'rubocop/cop/style/line_end_concatenation'
|
|
606
610
|
require_relative 'rubocop/cop/style/magic_comment_format'
|
|
607
611
|
require_relative 'rubocop/cop/style/map_into_array'
|
|
612
|
+
require_relative 'rubocop/cop/style/map_join'
|
|
608
613
|
require_relative 'rubocop/cop/style/map_to_hash'
|
|
609
614
|
require_relative 'rubocop/cop/style/map_to_set'
|
|
610
615
|
require_relative 'rubocop/cop/style/method_call_without_args_parentheses'
|
|
@@ -613,8 +618,10 @@ require_relative 'rubocop/cop/style/min_max_comparison'
|
|
|
613
618
|
require_relative 'rubocop/cop/style/module_member_existence_check'
|
|
614
619
|
require_relative 'rubocop/cop/style/multiline_in_pattern_then'
|
|
615
620
|
require_relative 'rubocop/cop/style/numbered_parameters'
|
|
621
|
+
require_relative 'rubocop/cop/style/one_class_per_file'
|
|
616
622
|
require_relative 'rubocop/cop/style/open_struct_use'
|
|
617
623
|
require_relative 'rubocop/cop/style/operator_method_call'
|
|
624
|
+
require_relative 'rubocop/cop/style/partition_instead_of_double_select'
|
|
618
625
|
require_relative 'rubocop/cop/style/redundant_array_constructor'
|
|
619
626
|
require_relative 'rubocop/cop/style/redundant_array_flatten'
|
|
620
627
|
require_relative 'rubocop/cop/style/redundant_assignment'
|
|
@@ -630,10 +637,12 @@ require_relative 'rubocop/cop/style/redundant_heredoc_delimiter_quotes'
|
|
|
630
637
|
require_relative 'rubocop/cop/style/redundant_initialize'
|
|
631
638
|
require_relative 'rubocop/cop/style/redundant_interpolation_unfreeze'
|
|
632
639
|
require_relative 'rubocop/cop/style/redundant_line_continuation'
|
|
640
|
+
require_relative 'rubocop/cop/style/redundant_min_max_by'
|
|
633
641
|
require_relative 'rubocop/cop/style/redundant_regexp_argument'
|
|
634
642
|
require_relative 'rubocop/cop/style/redundant_regexp_constructor'
|
|
635
643
|
require_relative 'rubocop/cop/style/redundant_self_assignment'
|
|
636
644
|
require_relative 'rubocop/cop/style/redundant_self_assignment_branch'
|
|
645
|
+
require_relative 'rubocop/cop/style/redundant_struct_keyword_init'
|
|
637
646
|
require_relative 'rubocop/cop/style/require_order'
|
|
638
647
|
require_relative 'rubocop/cop/style/reverse_find'
|
|
639
648
|
require_relative 'rubocop/cop/style/safe_navigation_chain_length'
|
|
@@ -687,6 +696,7 @@ require_relative 'rubocop/cop/style/parentheses_around_condition'
|
|
|
687
696
|
require_relative 'rubocop/cop/style/percent_literal_delimiters'
|
|
688
697
|
require_relative 'rubocop/cop/style/percent_q_literals'
|
|
689
698
|
require_relative 'rubocop/cop/style/perl_backrefs'
|
|
699
|
+
require_relative 'rubocop/cop/style/predicate_with_kind'
|
|
690
700
|
require_relative 'rubocop/cop/style/preferred_hash_methods'
|
|
691
701
|
require_relative 'rubocop/cop/style/proc'
|
|
692
702
|
require_relative 'rubocop/cop/style/quoted_symbols'
|
|
@@ -716,6 +726,8 @@ require_relative 'rubocop/cop/style/return_nil'
|
|
|
716
726
|
require_relative 'rubocop/cop/style/return_nil_in_predicate_method_definition'
|
|
717
727
|
require_relative 'rubocop/cop/style/safe_navigation'
|
|
718
728
|
require_relative 'rubocop/cop/style/sample'
|
|
729
|
+
require_relative 'rubocop/cop/style/select_by_kind'
|
|
730
|
+
require_relative 'rubocop/cop/style/select_by_range'
|
|
719
731
|
require_relative 'rubocop/cop/style/select_by_regexp'
|
|
720
732
|
require_relative 'rubocop/cop/style/self_assignment'
|
|
721
733
|
require_relative 'rubocop/cop/style/semicolon'
|
|
@@ -743,6 +755,7 @@ require_relative 'rubocop/cop/style/swap_values'
|
|
|
743
755
|
require_relative 'rubocop/cop/style/symbol_array'
|
|
744
756
|
require_relative 'rubocop/cop/style/symbol_literal'
|
|
745
757
|
require_relative 'rubocop/cop/style/symbol_proc'
|
|
758
|
+
require_relative 'rubocop/cop/style/tally_method'
|
|
746
759
|
require_relative 'rubocop/cop/style/ternary_parentheses'
|
|
747
760
|
require_relative 'rubocop/cop/style/top_level_method_definition'
|
|
748
761
|
require_relative 'rubocop/cop/style/trailing_body_on_class'
|
|
@@ -811,6 +824,7 @@ require_relative 'rubocop/cli/command/auto_generate_config'
|
|
|
811
824
|
require_relative 'rubocop/cli/command/execute_runner'
|
|
812
825
|
require_relative 'rubocop/cli/command/init_dotfile'
|
|
813
826
|
require_relative 'rubocop/cli/command/lsp'
|
|
827
|
+
require_relative 'rubocop/cli/command/mcp'
|
|
814
828
|
require_relative 'rubocop/cli/command/show_cops'
|
|
815
829
|
require_relative 'rubocop/cli/command/show_docs_url'
|
|
816
830
|
require_relative 'rubocop/cli/command/suggest_extensions'
|
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.85.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bozhidar Batsov
|
|
@@ -53,6 +53,20 @@ dependencies:
|
|
|
53
53
|
- - "~>"
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
55
|
version: 1.1.0
|
|
56
|
+
- !ruby/object:Gem::Dependency
|
|
57
|
+
name: mcp
|
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - "~>"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '0.6'
|
|
63
|
+
type: :runtime
|
|
64
|
+
prerelease: false
|
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - "~>"
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0.6'
|
|
56
70
|
- !ruby/object:Gem::Dependency
|
|
57
71
|
name: parallel
|
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -208,6 +222,7 @@ files:
|
|
|
208
222
|
- lib/rubocop/cli/command/execute_runner.rb
|
|
209
223
|
- lib/rubocop/cli/command/init_dotfile.rb
|
|
210
224
|
- lib/rubocop/cli/command/lsp.rb
|
|
225
|
+
- lib/rubocop/cli/command/mcp.rb
|
|
211
226
|
- lib/rubocop/cli/command/show_cops.rb
|
|
212
227
|
- lib/rubocop/cli/command/show_docs_url.rb
|
|
213
228
|
- lib/rubocop/cli/command/suggest_extensions.rb
|
|
@@ -286,6 +301,7 @@ files:
|
|
|
286
301
|
- lib/rubocop/cop/internal_affairs/example_description.rb
|
|
287
302
|
- lib/rubocop/cop/internal_affairs/example_heredoc_delimiter.rb
|
|
288
303
|
- lib/rubocop/cop/internal_affairs/inherit_deprecated_cop_class.rb
|
|
304
|
+
- lib/rubocop/cop/internal_affairs/itblock_handler.rb
|
|
289
305
|
- lib/rubocop/cop/internal_affairs/lambda_or_proc.rb
|
|
290
306
|
- lib/rubocop/cop/internal_affairs/location_exists.rb
|
|
291
307
|
- lib/rubocop/cop/internal_affairs/location_expression.rb
|
|
@@ -439,6 +455,7 @@ files:
|
|
|
439
455
|
- lib/rubocop/cop/lint/constant_reassignment.rb
|
|
440
456
|
- lib/rubocop/cop/lint/constant_resolution.rb
|
|
441
457
|
- lib/rubocop/cop/lint/cop_directive_syntax.rb
|
|
458
|
+
- lib/rubocop/cop/lint/data_define_override.rb
|
|
442
459
|
- lib/rubocop/cop/lint/debugger.rb
|
|
443
460
|
- lib/rubocop/cop/lint/deprecated_class_methods.rb
|
|
444
461
|
- lib/rubocop/cop/lint/deprecated_constants.rb
|
|
@@ -556,6 +573,7 @@ files:
|
|
|
556
573
|
- lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb
|
|
557
574
|
- lib/rubocop/cop/lint/unreachable_code.rb
|
|
558
575
|
- lib/rubocop/cop/lint/unreachable_loop.rb
|
|
576
|
+
- lib/rubocop/cop/lint/unreachable_pattern_branch.rb
|
|
559
577
|
- lib/rubocop/cop/lint/unused_block_argument.rb
|
|
560
578
|
- lib/rubocop/cop/lint/unused_method_argument.rb
|
|
561
579
|
- lib/rubocop/cop/lint/uri_escape_unescape.rb
|
|
@@ -630,6 +648,7 @@ files:
|
|
|
630
648
|
- lib/rubocop/cop/mixin/hash_shorthand_syntax.rb
|
|
631
649
|
- lib/rubocop/cop/mixin/hash_subset.rb
|
|
632
650
|
- lib/rubocop/cop/mixin/hash_transform_method.rb
|
|
651
|
+
- lib/rubocop/cop/mixin/hash_transform_method/autocorrection.rb
|
|
633
652
|
- lib/rubocop/cop/mixin/heredoc.rb
|
|
634
653
|
- lib/rubocop/cop/mixin/integer_node.rb
|
|
635
654
|
- lib/rubocop/cop/mixin/interpolation.rb
|
|
@@ -781,6 +800,7 @@ files:
|
|
|
781
800
|
- lib/rubocop/cop/style/fetch_env_var.rb
|
|
782
801
|
- lib/rubocop/cop/style/file_empty.rb
|
|
783
802
|
- lib/rubocop/cop/style/file_null.rb
|
|
803
|
+
- lib/rubocop/cop/style/file_open.rb
|
|
784
804
|
- lib/rubocop/cop/style/file_read.rb
|
|
785
805
|
- lib/rubocop/cop/style/file_touch.rb
|
|
786
806
|
- lib/rubocop/cop/style/file_write.rb
|
|
@@ -826,6 +846,7 @@ files:
|
|
|
826
846
|
- lib/rubocop/cop/style/magic_comment_format.rb
|
|
827
847
|
- lib/rubocop/cop/style/map_compact_with_conditional_block.rb
|
|
828
848
|
- lib/rubocop/cop/style/map_into_array.rb
|
|
849
|
+
- lib/rubocop/cop/style/map_join.rb
|
|
829
850
|
- lib/rubocop/cop/style/map_to_hash.rb
|
|
830
851
|
- lib/rubocop/cop/style/map_to_set.rb
|
|
831
852
|
- lib/rubocop/cop/style/method_call_with_args_parentheses.rb
|
|
@@ -872,6 +893,7 @@ files:
|
|
|
872
893
|
- lib/rubocop/cop/style/numeric_literals.rb
|
|
873
894
|
- lib/rubocop/cop/style/numeric_predicate.rb
|
|
874
895
|
- lib/rubocop/cop/style/object_then.rb
|
|
896
|
+
- lib/rubocop/cop/style/one_class_per_file.rb
|
|
875
897
|
- lib/rubocop/cop/style/one_line_conditional.rb
|
|
876
898
|
- lib/rubocop/cop/style/open_struct_use.rb
|
|
877
899
|
- lib/rubocop/cop/style/operator_method_call.rb
|
|
@@ -881,14 +903,17 @@ files:
|
|
|
881
903
|
- lib/rubocop/cop/style/or_assignment.rb
|
|
882
904
|
- lib/rubocop/cop/style/parallel_assignment.rb
|
|
883
905
|
- lib/rubocop/cop/style/parentheses_around_condition.rb
|
|
906
|
+
- lib/rubocop/cop/style/partition_instead_of_double_select.rb
|
|
884
907
|
- lib/rubocop/cop/style/percent_literal_delimiters.rb
|
|
885
908
|
- lib/rubocop/cop/style/percent_q_literals.rb
|
|
886
909
|
- lib/rubocop/cop/style/perl_backrefs.rb
|
|
910
|
+
- lib/rubocop/cop/style/predicate_with_kind.rb
|
|
887
911
|
- lib/rubocop/cop/style/preferred_hash_methods.rb
|
|
888
912
|
- lib/rubocop/cop/style/proc.rb
|
|
889
913
|
- lib/rubocop/cop/style/quoted_symbols.rb
|
|
890
914
|
- lib/rubocop/cop/style/raise_args.rb
|
|
891
915
|
- lib/rubocop/cop/style/random_with_offset.rb
|
|
916
|
+
- lib/rubocop/cop/style/reduce_to_hash.rb
|
|
892
917
|
- lib/rubocop/cop/style/redundant_argument.rb
|
|
893
918
|
- lib/rubocop/cop/style/redundant_array_constructor.rb
|
|
894
919
|
- lib/rubocop/cop/style/redundant_array_flatten.rb
|
|
@@ -912,6 +937,7 @@ files:
|
|
|
912
937
|
- lib/rubocop/cop/style/redundant_interpolation.rb
|
|
913
938
|
- lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb
|
|
914
939
|
- lib/rubocop/cop/style/redundant_line_continuation.rb
|
|
940
|
+
- lib/rubocop/cop/style/redundant_min_max_by.rb
|
|
915
941
|
- lib/rubocop/cop/style/redundant_parentheses.rb
|
|
916
942
|
- lib/rubocop/cop/style/redundant_percent_q.rb
|
|
917
943
|
- lib/rubocop/cop/style/redundant_regexp_argument.rb
|
|
@@ -925,6 +951,7 @@ files:
|
|
|
925
951
|
- lib/rubocop/cop/style/redundant_sort.rb
|
|
926
952
|
- lib/rubocop/cop/style/redundant_sort_by.rb
|
|
927
953
|
- lib/rubocop/cop/style/redundant_string_escape.rb
|
|
954
|
+
- lib/rubocop/cop/style/redundant_struct_keyword_init.rb
|
|
928
955
|
- lib/rubocop/cop/style/regexp_literal.rb
|
|
929
956
|
- lib/rubocop/cop/style/require_order.rb
|
|
930
957
|
- lib/rubocop/cop/style/rescue_modifier.rb
|
|
@@ -935,6 +962,8 @@ files:
|
|
|
935
962
|
- lib/rubocop/cop/style/safe_navigation.rb
|
|
936
963
|
- lib/rubocop/cop/style/safe_navigation_chain_length.rb
|
|
937
964
|
- lib/rubocop/cop/style/sample.rb
|
|
965
|
+
- lib/rubocop/cop/style/select_by_kind.rb
|
|
966
|
+
- lib/rubocop/cop/style/select_by_range.rb
|
|
938
967
|
- lib/rubocop/cop/style/select_by_regexp.rb
|
|
939
968
|
- lib/rubocop/cop/style/self_assignment.rb
|
|
940
969
|
- lib/rubocop/cop/style/semicolon.rb
|
|
@@ -965,6 +994,7 @@ files:
|
|
|
965
994
|
- lib/rubocop/cop/style/symbol_array.rb
|
|
966
995
|
- lib/rubocop/cop/style/symbol_literal.rb
|
|
967
996
|
- lib/rubocop/cop/style/symbol_proc.rb
|
|
997
|
+
- lib/rubocop/cop/style/tally_method.rb
|
|
968
998
|
- lib/rubocop/cop/style/ternary_parentheses.rb
|
|
969
999
|
- lib/rubocop/cop/style/top_level_method_definition.rb
|
|
970
1000
|
- lib/rubocop/cop/style/trailing_body_on_class.rb
|
|
@@ -1046,6 +1076,7 @@ files:
|
|
|
1046
1076
|
- lib/rubocop/lsp/severity.rb
|
|
1047
1077
|
- lib/rubocop/lsp/stdin_runner.rb
|
|
1048
1078
|
- lib/rubocop/magic_comment.rb
|
|
1079
|
+
- lib/rubocop/mcp/server.rb
|
|
1049
1080
|
- lib/rubocop/name_similarity.rb
|
|
1050
1081
|
- lib/rubocop/options.rb
|
|
1051
1082
|
- lib/rubocop/path_util.rb
|
|
@@ -1097,9 +1128,9 @@ licenses:
|
|
|
1097
1128
|
- MIT
|
|
1098
1129
|
metadata:
|
|
1099
1130
|
homepage_uri: https://rubocop.org/
|
|
1100
|
-
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.
|
|
1131
|
+
changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.85.0
|
|
1101
1132
|
source_code_uri: https://github.com/rubocop/rubocop/
|
|
1102
|
-
documentation_uri: https://docs.rubocop.org/rubocop/1.
|
|
1133
|
+
documentation_uri: https://docs.rubocop.org/rubocop/1.85/
|
|
1103
1134
|
bug_tracker_uri: https://github.com/rubocop/rubocop/issues
|
|
1104
1135
|
rubygems_mfa_required: 'true'
|
|
1105
1136
|
rdoc_options: []
|