rubocop 1.64.1 → 1.65.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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/config/default.yml +11 -1
  4. data/lib/rubocop/config_loader.rb +1 -1
  5. data/lib/rubocop/config_loader_resolver.rb +9 -3
  6. data/lib/rubocop/cop/cop.rb +20 -2
  7. data/lib/rubocop/cop/gemspec/add_runtime_dependency.rb +38 -0
  8. data/lib/rubocop/cop/gemspec/duplicated_assignment.rb +2 -2
  9. data/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb +3 -3
  10. data/lib/rubocop/cop/layout/case_indentation.rb +1 -1
  11. data/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb +1 -1
  12. data/lib/rubocop/cop/layout/first_argument_indentation.rb +2 -2
  13. data/lib/rubocop/cop/layout/heredoc_indentation.rb +1 -1
  14. data/lib/rubocop/cop/layout/indentation_width.rb +1 -1
  15. data/lib/rubocop/cop/layout/line_length.rb +20 -20
  16. data/lib/rubocop/cop/layout/space_around_operators.rb +3 -0
  17. data/lib/rubocop/cop/legacy/corrector.rb +12 -2
  18. data/lib/rubocop/cop/lint/duplicate_case_condition.rb +1 -1
  19. data/lib/rubocop/cop/lint/empty_when.rb +1 -1
  20. data/lib/rubocop/cop/lint/implicit_string_concatenation.rb +14 -7
  21. data/lib/rubocop/cop/lint/literal_as_condition.rb +1 -1
  22. data/lib/rubocop/cop/lint/nested_method_definition.rb +1 -1
  23. data/lib/rubocop/cop/lint/to_enum_arguments.rb +2 -9
  24. data/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb +1 -0
  25. data/lib/rubocop/cop/lint/void.rb +5 -0
  26. data/lib/rubocop/cop/metrics/block_nesting.rb +19 -7
  27. data/lib/rubocop/cop/mixin/alignment.rb +5 -1
  28. data/lib/rubocop/cop/mixin/allowed_methods.rb +7 -1
  29. data/lib/rubocop/cop/mixin/allowed_pattern.rb +15 -3
  30. data/lib/rubocop/cop/mixin/configurable_max.rb +5 -1
  31. data/lib/rubocop/cop/mixin/rescue_node.rb +4 -0
  32. data/lib/rubocop/cop/style/arguments_forwarding.rb +1 -1
  33. data/lib/rubocop/cop/style/hash_except.rb +8 -5
  34. data/lib/rubocop/cop/style/map_compact_with_conditional_block.rb +77 -43
  35. data/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +5 -0
  36. data/lib/rubocop/cop/style/quoted_symbols.rb +1 -1
  37. data/lib/rubocop/cop/style/redundant_begin.rb +1 -1
  38. data/lib/rubocop/cop/style/redundant_file_extension_in_require.rb +1 -1
  39. data/lib/rubocop/cop/style/send_with_literal_method_name.rb +15 -1
  40. data/lib/rubocop/cop/style/super_arguments.rb +28 -10
  41. data/lib/rubocop/cop/style/symbol_proc.rb +8 -1
  42. data/lib/rubocop/cop/style/zero_length_predicate.rb +28 -24
  43. data/lib/rubocop/cop/team.rb +8 -0
  44. data/lib/rubocop/cop/util.rb +7 -1
  45. data/lib/rubocop/cops_documentation_generator.rb +1 -1
  46. data/lib/rubocop/ext/regexp_parser.rb +4 -21
  47. data/lib/rubocop/formatter/html_formatter.rb +3 -1
  48. data/lib/rubocop/rspec/shared_contexts.rb +20 -0
  49. data/lib/rubocop/rspec/support.rb +1 -0
  50. data/lib/rubocop/server/cache.rb +10 -0
  51. data/lib/rubocop/server/client_command/exec.rb +2 -2
  52. data/lib/rubocop/server/client_command/start.rb +1 -1
  53. data/lib/rubocop/server/core.rb +4 -0
  54. data/lib/rubocop/version.rb +1 -1
  55. data/lib/rubocop.rb +1 -0
  56. metadata +11 -10
@@ -44,6 +44,10 @@ module RuboCop
44
44
  write_port_and_token_files
45
45
 
46
46
  pid = fork do
47
+ if defined?(RubyVM::YJIT.enable)
48
+ RubyVM::YJIT.enable
49
+ end
50
+
47
51
  Process.daemon(true)
48
52
  $stderr.reopen(Cache.stderr_path, 'w')
49
53
  process_input
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
- STRING = '1.64.1'
6
+ STRING = '1.65.0'
7
7
 
8
8
  MSG = '%<version>s (using %<parser_version>s, ' \
9
9
  'rubocop-ast %<rubocop_ast_version>s, ' \
data/lib/rubocop.rb CHANGED
@@ -169,6 +169,7 @@ require_relative 'rubocop/cop/bundler/gem_version'
169
169
  require_relative 'rubocop/cop/bundler/insecure_protocol_source'
170
170
  require_relative 'rubocop/cop/bundler/ordered_gems'
171
171
 
172
+ require_relative 'rubocop/cop/gemspec/add_runtime_dependency'
172
173
  require_relative 'rubocop/cop/gemspec/dependency_version'
173
174
  require_relative 'rubocop/cop/gemspec/deprecated_attribute_assignment'
174
175
  require_relative 'rubocop/cop/gemspec/development_dependencies'
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.64.1
4
+ version: 1.65.0
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: 2024-05-31 00:00:00.000000000 Z
13
+ date: 2024-07-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -94,7 +94,7 @@ dependencies:
94
94
  requirements:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: '1.8'
97
+ version: '2.4'
98
98
  - - "<"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '3.0'
@@ -104,7 +104,7 @@ dependencies:
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: '1.8'
107
+ version: '2.4'
108
108
  - - "<"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.0'
@@ -270,6 +270,7 @@ files:
270
270
  - lib/rubocop/cop/documentation.rb
271
271
  - lib/rubocop/cop/exclude_limit.rb
272
272
  - lib/rubocop/cop/force.rb
273
+ - lib/rubocop/cop/gemspec/add_runtime_dependency.rb
273
274
  - lib/rubocop/cop/gemspec/dependency_version.rb
274
275
  - lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb
275
276
  - lib/rubocop/cop/gemspec/development_dependencies.rb
@@ -1034,12 +1035,12 @@ licenses:
1034
1035
  - MIT
1035
1036
  metadata:
1036
1037
  homepage_uri: https://rubocop.org/
1037
- changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.64.1
1038
+ changelog_uri: https://github.com/rubocop/rubocop/releases/tag/v1.65.0
1038
1039
  source_code_uri: https://github.com/rubocop/rubocop/
1039
- documentation_uri: https://docs.rubocop.org/rubocop/1.64/
1040
+ documentation_uri: https://docs.rubocop.org/rubocop/1.65/
1040
1041
  bug_tracker_uri: https://github.com/rubocop/rubocop/issues
1041
1042
  rubygems_mfa_required: 'true'
1042
- post_install_message:
1043
+ post_install_message:
1043
1044
  rdoc_options: []
1044
1045
  require_paths:
1045
1046
  - lib
@@ -1054,8 +1055,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1054
1055
  - !ruby/object:Gem::Version
1055
1056
  version: '0'
1056
1057
  requirements: []
1057
- rubygems_version: 3.3.7
1058
- signing_key:
1058
+ rubygems_version: 3.4.22
1059
+ signing_key:
1059
1060
  specification_version: 4
1060
1061
  summary: Automatic Ruby code style checking tool.
1061
1062
  test_files: []