diff --git a/CHANGELOG.md b/CHANGELOG.md index edae4887101e..ab37df92a238 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,40 @@ ## master (unreleased) +### New features + +* [#13030](https://github.com/rubocop/rubocop/pull/13030): Add new `Gemspec/AddRuntimeDependency` cop. ([@koic][]) + +### Bug fixes + +* [#12954](https://github.com/rubocop/rubocop/issues/12954): Fix a false negative for `Style/ArgumentsForwarding` when arguments forwarding in `yield`. ([@koic][]) +* [#13033](https://github.com/rubocop/rubocop/issues/13033): Fix a false positive for `Layout/SpaceAroundOperators` when using multiple spaces between an operator and a tailing comment. ([@koic][]) +* [#12885](https://github.com/rubocop/rubocop/issues/12885): Fix a false positive for `Lint/ToEnumArguments` when enumerator is created for another method. ([@koic][]) +* [#13018](https://github.com/rubocop/rubocop/issues/13018): Fix a false positive for `Style/MethodCallWithArgsParentheses` when `EnforcedStyle: omit_parentheses` is set and parenthesized method call is used before constant resolution. ([@koic][]) +* [#12986](https://github.com/rubocop/rubocop/issues/12986): Fix a false positive for `Style/RedundantBegin` when endless method definition with `rescue`. ([@koic][]) +* [#12985](https://github.com/rubocop/rubocop/issues/12985): Fix an error for `Style/RedundantRegexpCharacterClass` when using regexp_parser gem 2.3.1 or older. ([@koic][]) +* [#13010](https://github.com/rubocop/rubocop/issues/13010): Fix an error for `Style/SuperArguments` when the hash argument is or-assigned. ([@koic][]) +* [#13023](https://github.com/rubocop/rubocop/issues/13023): Fix an error for `Style/SymbolProc` when using lambda `->` with one argument and multiline `do`...`end` block. ([@koic][]) +* [#12989](https://github.com/rubocop/rubocop/issues/12989): Fix an error for the `inherit_gem` config when the Gemfile contains an uninstalled git gem. ([@earlopain][]) +* [#12975](https://github.com/rubocop/rubocop/issues/12975): Fix an error for the `inherit_gem` config when running RuboCop without bundler and no Gemfile exists. ([@earlopain][]) +* [#12997](https://github.com/rubocop/rubocop/pull/12997): Fix an error for `Lint/UnmodifiedReduceAccumulator` when the block is empty. ([@earlopain][]) +* [#12979](https://github.com/rubocop/rubocop/issues/12979): Fix false negatives for `Lint/Void` when void expression with guard clause is not on last line. ([@koic][]) +* [#12716](https://github.com/rubocop/rubocop/issues/12716): Fix false negatives for `Lint/Void` when using parenthesized void operators. ([@koic][]) +* [#12471](https://github.com/rubocop/rubocop/issues/12471): Fix false negatives for `Style/ZeroLengthPredicate` when using safe navigation operator. ([@koic][]) +* [#12960](https://github.com/rubocop/rubocop/issues/12960): Fix false positives for `Lint/NestedMethodDefinition` when definition of method on variable. ([@koic][]) +* [#13012](https://github.com/rubocop/rubocop/issues/13012): Fix false positives for `Style/HashExcept` when using `reject` and calling `include?` method with bang. ([@koic][]) +* [#12983](https://github.com/rubocop/rubocop/issues/12983): Fix false positives for `Style/SendWithLiteralMethodName` using `send` with writer method name. ([@koic][]) +* [#12957](https://github.com/rubocop/rubocop/issues/12957): Fix false positives for `Style/SuperArguments` when calling super in a block. ([@koic][]) + +### Changes + +* [#12970](https://github.com/rubocop/rubocop/issues/12970): Add `CountModifierForms` option to `Metrics/BlockNesting` and set it to `false` by default. ([@koic][]) +* [#13032](https://github.com/rubocop/rubocop/pull/13032): Display warning messages for deprecated APIs. ([@koic][]) +* [#13031](https://github.com/rubocop/rubocop/pull/13031): Enable YJIT by default in server mode. ([@koic][]) +* [#12557](https://github.com/rubocop/rubocop/issues/12557): Make server mode aware of auto-restart for `bundle update`. ([@koic][]) +* [#12616](https://github.com/rubocop/rubocop/issues/12616): Make `Style/MapCompactWithConditionalBlock` aware of `filter_map`. ([@koic][]) +* [#13035](https://github.com/rubocop/rubocop/issues/13035): Support autocorrect for `Lint/ImplicitStringConcatenation`. ([@koic][]) + ## 1.64.1 (2024-05-31) ### Bug fixes diff --git a/changelog/change_add_count_blocks_to_metrics_block_nesting.md b/changelog/change_add_count_blocks_to_metrics_block_nesting.md deleted file mode 100644 index 2dfbf2385fad..000000000000 --- a/changelog/change_add_count_blocks_to_metrics_block_nesting.md +++ /dev/null @@ -1 +0,0 @@ -* [#12970](https://github.com/rubocop/rubocop/issues/12970): Add `CountModifierForms` option to `Metrics/BlockNesting` and set it to `false` by default. ([@koic][]) diff --git a/changelog/change_display_warning_messages_for_deprecated_api.md b/changelog/change_display_warning_messages_for_deprecated_api.md deleted file mode 100644 index ffe9794c27b1..000000000000 --- a/changelog/change_display_warning_messages_for_deprecated_api.md +++ /dev/null @@ -1 +0,0 @@ -* [#13032](https://github.com/rubocop/rubocop/pull/13032): Display warning messages for deprecated APIs. ([@koic][]) diff --git a/changelog/change_enable_yjit_by_default_in_server_mode.md b/changelog/change_enable_yjit_by_default_in_server_mode.md deleted file mode 100644 index 9fa26d657a31..000000000000 --- a/changelog/change_enable_yjit_by_default_in_server_mode.md +++ /dev/null @@ -1 +0,0 @@ -* [#13031](https://github.com/rubocop/rubocop/pull/13031): Enable YJIT by default in server mode. ([@koic][]) diff --git a/changelog/change_make_server_mode_aware-of_auto_restart_for_bundle_update.md b/changelog/change_make_server_mode_aware-of_auto_restart_for_bundle_update.md deleted file mode 100644 index ce630c6855c6..000000000000 --- a/changelog/change_make_server_mode_aware-of_auto_restart_for_bundle_update.md +++ /dev/null @@ -1 +0,0 @@ -* [#12557](https://github.com/rubocop/rubocop/issues/12557): Make server mode aware of auto-restart for `bundle update`. ([@koic][]) diff --git a/changelog/change_make_style_map_compact_with_conditional_block_aware_of_filter_map.md b/changelog/change_make_style_map_compact_with_conditional_block_aware_of_filter_map.md deleted file mode 100644 index 8214c34294ad..000000000000 --- a/changelog/change_make_style_map_compact_with_conditional_block_aware_of_filter_map.md +++ /dev/null @@ -1 +0,0 @@ -* [#12616](https://github.com/rubocop/rubocop/issues/12616): Make `Style/MapCompactWithConditionalBlock` aware of `filter_map`. ([@koic][]) diff --git a/changelog/change_support_autocorrect_for_lint_implicit_string_concatenation.md b/changelog/change_support_autocorrect_for_lint_implicit_string_concatenation.md deleted file mode 100644 index 8f031e989d93..000000000000 --- a/changelog/change_support_autocorrect_for_lint_implicit_string_concatenation.md +++ /dev/null @@ -1 +0,0 @@ -* [#13035](https://github.com/rubocop/rubocop/issues/13035): Support autocorrect for `Lint/ImplicitStringConcatenation`. ([@koic][]) diff --git a/changelog/fix_a_false_negative_for_style_arguments_forwarding.md b/changelog/fix_a_false_negative_for_style_arguments_forwarding.md deleted file mode 100644 index 08160706710c..000000000000 --- a/changelog/fix_a_false_negative_for_style_arguments_forwarding.md +++ /dev/null @@ -1 +0,0 @@ -* [#12954](https://github.com/rubocop/rubocop/issues/12954): Fix a false negative for `Style/ArgumentsForwarding` when arguments forwarding in `yield`. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_layout_space_around_operators.md b/changelog/fix_a_false_positive_for_layout_space_around_operators.md deleted file mode 100644 index 9779e4ab3e2a..000000000000 --- a/changelog/fix_a_false_positive_for_layout_space_around_operators.md +++ /dev/null @@ -1 +0,0 @@ -* [#13033](https://github.com/rubocop/rubocop/issues/13033): Fix a false positive for `Layout/SpaceAroundOperators` when using multiple spaces between an operator and a tailing comment. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_lint_to_enum_arguments.md b/changelog/fix_a_false_positive_for_lint_to_enum_arguments.md deleted file mode 100644 index ed8635b21daf..000000000000 --- a/changelog/fix_a_false_positive_for_lint_to_enum_arguments.md +++ /dev/null @@ -1 +0,0 @@ -* [#12885](https://github.com/rubocop/rubocop/issues/12885): Fix a false positive for `Lint/ToEnumArguments` when enumerator is created for another method. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_style_method_call_with_args_parentheses.md b/changelog/fix_a_false_positive_for_style_method_call_with_args_parentheses.md deleted file mode 100644 index fcc7f8e4daae..000000000000 --- a/changelog/fix_a_false_positive_for_style_method_call_with_args_parentheses.md +++ /dev/null @@ -1 +0,0 @@ -* [#13018](https://github.com/rubocop/rubocop/issues/13018): Fix a false positive for `Style/MethodCallWithArgsParentheses` when `EnforcedStyle: omit_parentheses` is set and parenthesized method call is used before constant resolution. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_style_redundant_begin.md b/changelog/fix_a_false_positive_for_style_redundant_begin.md deleted file mode 100644 index 524643faf85c..000000000000 --- a/changelog/fix_a_false_positive_for_style_redundant_begin.md +++ /dev/null @@ -1 +0,0 @@ -* [#12986](https://github.com/rubocop/rubocop/issues/12986): Fix a false positive for `Style/RedundantBegin` when endless method definition with `rescue`. ([@koic][]) diff --git a/changelog/fix_an_error_for_style_redundant_regexp_character_class.md b/changelog/fix_an_error_for_style_redundant_regexp_character_class.md deleted file mode 100644 index 35b68431d5c1..000000000000 --- a/changelog/fix_an_error_for_style_redundant_regexp_character_class.md +++ /dev/null @@ -1 +0,0 @@ -* [#12985](https://github.com/rubocop/rubocop/issues/12985): Fix an error for `Style/RedundantRegexpCharacterClass` when using regexp_parser gem 2.3.1 or older. ([@koic][]) diff --git a/changelog/fix_an_error_for_style_super_arguments.md b/changelog/fix_an_error_for_style_super_arguments.md deleted file mode 100644 index e6a1da1b5922..000000000000 --- a/changelog/fix_an_error_for_style_super_arguments.md +++ /dev/null @@ -1 +0,0 @@ -* [#13010](https://github.com/rubocop/rubocop/issues/13010): Fix an error for `Style/SuperArguments` when the hash argument is or-assigned. ([@koic][]) diff --git a/changelog/fix_an_error_for_style_symbol_proc.md b/changelog/fix_an_error_for_style_symbol_proc.md deleted file mode 100644 index bf7dc656712a..000000000000 --- a/changelog/fix_an_error_for_style_symbol_proc.md +++ /dev/null @@ -1 +0,0 @@ -* [#13023](https://github.com/rubocop/rubocop/issues/13023): Fix an error for `Style/SymbolProc` when using lambda `->` with one argument and multiline `do`...`end` block. ([@koic][]) diff --git a/changelog/fix_error_for_inherit_gem_git_gem.md b/changelog/fix_error_for_inherit_gem_git_gem.md deleted file mode 100644 index be2fea31f582..000000000000 --- a/changelog/fix_error_for_inherit_gem_git_gem.md +++ /dev/null @@ -1 +0,0 @@ -* [#12989](https://github.com/rubocop/rubocop/issues/12989): Fix an error for the `inherit_gem` config when the Gemfile contains an uninstalled git gem. ([@earlopain][]) diff --git a/changelog/fix_error_for_inherit_gem_without_gemfile.md b/changelog/fix_error_for_inherit_gem_without_gemfile.md deleted file mode 100644 index bb832347a3c6..000000000000 --- a/changelog/fix_error_for_inherit_gem_without_gemfile.md +++ /dev/null @@ -1 +0,0 @@ -* [#12975](https://github.com/rubocop/rubocop/issues/12975): Fix an error for the `inherit_gem` config when running RuboCop without bundler and no Gemfile exists. ([@earlopain][]) diff --git a/changelog/fix_error_for_lint_unmodified_reduce_accumulator.md b/changelog/fix_error_for_lint_unmodified_reduce_accumulator.md deleted file mode 100644 index f465bad696b3..000000000000 --- a/changelog/fix_error_for_lint_unmodified_reduce_accumulator.md +++ /dev/null @@ -1 +0,0 @@ -* [#12997](https://github.com/rubocop/rubocop/pull/12997): Fix an error for `Lint/UnmodifiedReduceAccumulator` when the block is empty. ([@earlopain][]) diff --git a/changelog/fix_false_negatives_for_lint_void.md b/changelog/fix_false_negatives_for_lint_void.md deleted file mode 100644 index 8860a96a8ec9..000000000000 --- a/changelog/fix_false_negatives_for_lint_void.md +++ /dev/null @@ -1 +0,0 @@ -* [#12979](https://github.com/rubocop/rubocop/issues/12979): Fix false negatives for `Lint/Void` when void expression with guard clause is not on last line. ([@koic][]) diff --git a/changelog/fix_false_negatives_for_lint_void_cop.md b/changelog/fix_false_negatives_for_lint_void_cop.md deleted file mode 100644 index a80a0f8ef3d1..000000000000 --- a/changelog/fix_false_negatives_for_lint_void_cop.md +++ /dev/null @@ -1 +0,0 @@ -* [#12716](https://github.com/rubocop/rubocop/issues/12716): Fix false negatives for `Lint/Void` when using parenthesized void operators. ([@koic][]) diff --git a/changelog/fix_false_negatives_for_style_zero_length_predicate.md b/changelog/fix_false_negatives_for_style_zero_length_predicate.md deleted file mode 100644 index 3d1fe0feacde..000000000000 --- a/changelog/fix_false_negatives_for_style_zero_length_predicate.md +++ /dev/null @@ -1 +0,0 @@ -* [#12471](https://github.com/rubocop/rubocop/issues/12471): Fix false negatives for `Style/ZeroLengthPredicate` when using safe navigation operator. ([@koic][]) diff --git a/changelog/fix_false_positives_for_lint_nested_method_definition.md b/changelog/fix_false_positives_for_lint_nested_method_definition.md deleted file mode 100644 index c5b2ae8bdd89..000000000000 --- a/changelog/fix_false_positives_for_lint_nested_method_definition.md +++ /dev/null @@ -1 +0,0 @@ -* [#12960](https://github.com/rubocop/rubocop/issues/12960): Fix false positives for `Lint/NestedMethodDefinition` when definition of method on variable. ([@koic][]) diff --git a/changelog/fix_false_positives_for_style_hash_except.md b/changelog/fix_false_positives_for_style_hash_except.md deleted file mode 100644 index 0ae4f9df14bd..000000000000 --- a/changelog/fix_false_positives_for_style_hash_except.md +++ /dev/null @@ -1 +0,0 @@ -* [#13012](https://github.com/rubocop/rubocop/issues/13012): Fix false positives for `Style/HashExcept` when using `reject` and calling `include?` method with bang. ([@koic][]) diff --git a/changelog/fix_false_positives_for_style_send_with_literal_method_name.md b/changelog/fix_false_positives_for_style_send_with_literal_method_name.md deleted file mode 100644 index 99badbf5c111..000000000000 --- a/changelog/fix_false_positives_for_style_send_with_literal_method_name.md +++ /dev/null @@ -1 +0,0 @@ -* [#12983](https://github.com/rubocop/rubocop/issues/12983): Fix false positives for `Style/SendWithLiteralMethodName` using `send` with writer method name. ([@koic][]) diff --git a/changelog/fix_false_positives_for_style_super_arguments.md b/changelog/fix_false_positives_for_style_super_arguments.md deleted file mode 100644 index a925dea59eee..000000000000 --- a/changelog/fix_false_positives_for_style_super_arguments.md +++ /dev/null @@ -1 +0,0 @@ -* [#12957](https://github.com/rubocop/rubocop/issues/12957): Fix false positives for `Style/SuperArguments` when calling super in a block. ([@koic][]) diff --git a/changelog/new_add_new_gemspec_add_runtime_dependency_cop.md b/changelog/new_add_new_gemspec_add_runtime_dependency_cop.md deleted file mode 100644 index 568ed4d12b70..000000000000 --- a/changelog/new_add_new_gemspec_add_runtime_dependency_cop.md +++ /dev/null @@ -1 +0,0 @@ -* [#13030](https://github.com/rubocop/rubocop/pull/13030): Add new `Gemspec/AddRuntimeDependency` cop. ([@koic][])