From 9af59998b22fcafb018fb5e31267b19b1e3cbf8e Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 1 Mar 2023 12:19:20 +0100 Subject: [PATCH] Update Changelog --- CHANGELOG.md | 27 +++++++++++++++++++ ...ubocop_capybara_to_suggested_extensions.md | 1 - ...a_false_negative_for_lint_missing_super.md | 1 - ...a_false_positive_for_lint_missing_super.md | 1 - ...e_positive_for_style_if_unless_modifier.md | 1 - ...itive_for_style_redundant_regexp_escape.md | 1 - ...ositive_for_style_zero_length_predicate.md | 1 - ...x_an_error_for_lint_constant_resolution.md | 1 - ...n_error_for_lint_empty_conditional_body.md | 1 - ...ocorrect_for_style_arguments_forwarding.md | 1 - ...ect_class_structure_method_with_heredoc.md | 1 - ...handle_modifier_looping_conditionals_in.md | 1 - ...ix_only_flag_usage_with_auto_gen_config.md | 1 - ...rrect_for_hash_in_litelal_interpolation.md | 1 - ...d_metrics_collection_literal_length_cop.md | 1 - 15 files changed, 27 insertions(+), 14 deletions(-) delete mode 100644 changelog/change_add_rubocop_capybara_to_suggested_extensions.md delete mode 100644 changelog/fix_a_false_negative_for_lint_missing_super.md delete mode 100644 changelog/fix_a_false_positive_for_lint_missing_super.md delete mode 100644 changelog/fix_a_false_positive_for_style_if_unless_modifier.md delete mode 100644 changelog/fix_a_false_positive_for_style_redundant_regexp_escape.md delete mode 100644 changelog/fix_a_false_positive_for_style_zero_length_predicate.md delete mode 100644 changelog/fix_an_error_for_lint_constant_resolution.md delete mode 100644 changelog/fix_an_error_for_lint_empty_conditional_body.md delete mode 100644 changelog/fix_an_incorrect_autocorrect_for_style_arguments_forwarding.md delete mode 100644 changelog/fix_autocorrect_class_structure_method_with_heredoc.md delete mode 100644 changelog/fix_handle_modifier_looping_conditionals_in.md delete mode 100644 changelog/fix_only_flag_usage_with_auto_gen_config.md delete mode 100644 changelog/new_add_autocorrect_for_hash_in_litelal_interpolation.md delete mode 100644 changelog/new_add_metrics_collection_literal_length_cop.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 595e5dd3a93a..483ecdf53f98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,29 @@ ## master (unreleased) +### New features + +* [#11475](https://github.com/rubocop/rubocop/pull/11475): Add autocorrect for hash in `Lint/LiteralInInterpolation`. ([@KessaPassa][]) +* [#11584](https://github.com/rubocop/rubocop/pull/11584): Add `Metrics/CollectionLiteralLength` cop. ([@sambostock][]) + +### Bug fixes + +* [#11615](https://github.com/rubocop/rubocop/issues/11615): Fix a false negative for `Lint/MissingSuper` when no `super` call with `Class.new` block. ([@koic][]) +* [#11615](https://github.com/rubocop/rubocop/issues/11615): Fix a false negative for `Lint/MissingSuper` when using `Class.new` without parent class argument. ([@koic][]) +* [#11040](https://github.com/rubocop/rubocop/issues/11040): Fix a false positive for `Style/IfUnlessModifier` when `defined?`'s argument value is undefined. ([@koic][]) +* [#11607](https://github.com/rubocop/rubocop/issues/11607): Fix a false positive for `Style/RedundantRegexpEscape` when an escaped hyphen follows after an escaped opening square bracket within a character class. ([@SparLaimor][]) +* [#11626](https://github.com/rubocop/rubocop/issues/11626): Fix a false positive for `Style/ZeroLengthPredicate` when using `File.new(path).size.zero?`. ([@koic][]) +* [#11620](https://github.com/rubocop/rubocop/pull/11620): Fix an error for `Lint/ConstantResolution` when using `__ENCODING__`. ([@koic][]) +* [#11625](https://github.com/rubocop/rubocop/pull/11625): Fix an error for `Lint/EmptyConditionalBody` when missing `if` body and using method call for return value. ([@koic][]) +* [#11631](https://github.com/rubocop/rubocop/issues/11631): Fix an incorrect autocorrect for `Style/ArgumentsForwarding` when using arguments forwarding for `.()` call. ([@koic][]) +* [#11621](https://github.com/rubocop/rubocop/issues/11621): Fix an incorrect autocorrect for `Layout/ClassStructure` using heredoc inside method. ([@fatkodima][]) +* [#3591](https://github.com/rubocop/rubocop/issues/3591): Handle modifier `while` and `until` expressions in `Lint/UselessAssignment`. ([@bfad][]) +* [#11202](https://github.com/rubocop/rubocop/issues/11202): Fixed usage of `--only` flag with `--auto-gen-config`. ([@istvanfazakas][]) + +### Changes + +* [#11623](https://github.com/rubocop/rubocop/pull/11623): Add rubocop-capybara to suggested extensions and extension doc. ([@ydah][]) + ## 1.46.0 (2023-02-22) ### New features @@ -6912,3 +6935,7 @@ [@krishanbhasin-shopify]: https://github.com/krishanbhasin-shopify [@f1sherman]: https://github.com/f1sherman [@jaynetics]: https://github.com/jaynetics +[@SparLaimor]: https://github.com/SparLaimor +[@bfad]: https://github.com/bfad +[@istvanfazakas]: https://github.com/istvanfazakas +[@KessaPassa]: https://github.com/KessaPassa diff --git a/changelog/change_add_rubocop_capybara_to_suggested_extensions.md b/changelog/change_add_rubocop_capybara_to_suggested_extensions.md deleted file mode 100644 index 2f1493e2cd81..000000000000 --- a/changelog/change_add_rubocop_capybara_to_suggested_extensions.md +++ /dev/null @@ -1 +0,0 @@ -* [#11623](https://github.com/rubocop/rubocop/pull/11623): Add rubocop-capybara to suggested extensions and extension doc. ([@ydah][]) diff --git a/changelog/fix_a_false_negative_for_lint_missing_super.md b/changelog/fix_a_false_negative_for_lint_missing_super.md deleted file mode 100644 index c2deb63bac5f..000000000000 --- a/changelog/fix_a_false_negative_for_lint_missing_super.md +++ /dev/null @@ -1 +0,0 @@ -* [#11615](https://github.com/rubocop/rubocop/issues/11615): Fix a false negative for `Lint/MissingSuper` when no `super` call with `Class.new` block. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_lint_missing_super.md b/changelog/fix_a_false_positive_for_lint_missing_super.md deleted file mode 100644 index 5c0457e16b4e..000000000000 --- a/changelog/fix_a_false_positive_for_lint_missing_super.md +++ /dev/null @@ -1 +0,0 @@ -* [#11615](https://github.com/rubocop/rubocop/issues/11615): Fix a false negative for `Lint/MissingSuper` when using `Class.new` without parent class argument. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_style_if_unless_modifier.md b/changelog/fix_a_false_positive_for_style_if_unless_modifier.md deleted file mode 100644 index 91d3b7c33d42..000000000000 --- a/changelog/fix_a_false_positive_for_style_if_unless_modifier.md +++ /dev/null @@ -1 +0,0 @@ -* [#11040](https://github.com/rubocop/rubocop/issues/11040): Fix a false positive for `Style/IfUnlessModifier` when `defined?`'s argument value is undefined. ([@koic][]) diff --git a/changelog/fix_a_false_positive_for_style_redundant_regexp_escape.md b/changelog/fix_a_false_positive_for_style_redundant_regexp_escape.md deleted file mode 100644 index 80b47569f0ee..000000000000 --- a/changelog/fix_a_false_positive_for_style_redundant_regexp_escape.md +++ /dev/null @@ -1 +0,0 @@ -* [#11607](https://github.com/rubocop/rubocop/issues/11607): Fix a false positive for `Style/RedundantRegexpEscape` when an escaped hyphen follows after an escaped opening square bracket within a character class. ([@SparLaimor][]) diff --git a/changelog/fix_a_false_positive_for_style_zero_length_predicate.md b/changelog/fix_a_false_positive_for_style_zero_length_predicate.md deleted file mode 100644 index 529f598012f9..000000000000 --- a/changelog/fix_a_false_positive_for_style_zero_length_predicate.md +++ /dev/null @@ -1 +0,0 @@ -* [#11626](https://github.com/rubocop/rubocop/issues/11626): Fix a false positive for `Style/ZeroLengthPredicate` when using `File.new(path).size.zero?`. ([@koic][]) diff --git a/changelog/fix_an_error_for_lint_constant_resolution.md b/changelog/fix_an_error_for_lint_constant_resolution.md deleted file mode 100644 index ab767efed59f..000000000000 --- a/changelog/fix_an_error_for_lint_constant_resolution.md +++ /dev/null @@ -1 +0,0 @@ -* [#11620](https://github.com/rubocop/rubocop/pull/11620): Fix an error for `Lint/ConstantResolution` when using `__ENCODING__`. ([@koic][]) diff --git a/changelog/fix_an_error_for_lint_empty_conditional_body.md b/changelog/fix_an_error_for_lint_empty_conditional_body.md deleted file mode 100644 index 8a9ae6a0bd9a..000000000000 --- a/changelog/fix_an_error_for_lint_empty_conditional_body.md +++ /dev/null @@ -1 +0,0 @@ -* [#11625](https://github.com/rubocop/rubocop/pull/11625): Fix an error for `Lint/EmptyConditionalBody` when missing `if` body and using method call for return value. ([@koic][]) diff --git a/changelog/fix_an_incorrect_autocorrect_for_style_arguments_forwarding.md b/changelog/fix_an_incorrect_autocorrect_for_style_arguments_forwarding.md deleted file mode 100644 index 5f6814e8c85c..000000000000 --- a/changelog/fix_an_incorrect_autocorrect_for_style_arguments_forwarding.md +++ /dev/null @@ -1 +0,0 @@ -* [#11631](https://github.com/rubocop/rubocop/issues/11631): Fix an incorrect autocorrect for `Style/ArgumentsForwarding` when using arguments forwarding for `.()` call. ([@koic][]) diff --git a/changelog/fix_autocorrect_class_structure_method_with_heredoc.md b/changelog/fix_autocorrect_class_structure_method_with_heredoc.md deleted file mode 100644 index aca2d4628c94..000000000000 --- a/changelog/fix_autocorrect_class_structure_method_with_heredoc.md +++ /dev/null @@ -1 +0,0 @@ -* [#11621](https://github.com/rubocop/rubocop/issues/11621): Fix an incorrect autocorrect for `Layout/ClassStructure` using heredoc inside method. ([@fatkodima][]) diff --git a/changelog/fix_handle_modifier_looping_conditionals_in.md b/changelog/fix_handle_modifier_looping_conditionals_in.md deleted file mode 100644 index e30e611ae011..000000000000 --- a/changelog/fix_handle_modifier_looping_conditionals_in.md +++ /dev/null @@ -1 +0,0 @@ -* [#3591](https://github.com/rubocop/rubocop/issues/3591): Handle modifier `while` and `until` expressions in `Lint/UselessAssignment`. ([@bfad][]) diff --git a/changelog/fix_only_flag_usage_with_auto_gen_config.md b/changelog/fix_only_flag_usage_with_auto_gen_config.md deleted file mode 100644 index 062ebf566320..000000000000 --- a/changelog/fix_only_flag_usage_with_auto_gen_config.md +++ /dev/null @@ -1 +0,0 @@ -* [#11202](https://github.com/rubocop/rubocop/issues/11202): Fixed usage of `--only` flag with `--auto-gen-config`. ([@istvanfazakas][]) diff --git a/changelog/new_add_autocorrect_for_hash_in_litelal_interpolation.md b/changelog/new_add_autocorrect_for_hash_in_litelal_interpolation.md deleted file mode 100644 index eb060f48ddbe..000000000000 --- a/changelog/new_add_autocorrect_for_hash_in_litelal_interpolation.md +++ /dev/null @@ -1 +0,0 @@ -* [#11475](https://github.com/rubocop/rubocop/pull/11475): Add autocorrect for hash in `Lint/LiteralInInterpolation`. ([@KessaPassa][]) diff --git a/changelog/new_add_metrics_collection_literal_length_cop.md b/changelog/new_add_metrics_collection_literal_length_cop.md deleted file mode 100644 index 27a9299089c1..000000000000 --- a/changelog/new_add_metrics_collection_literal_length_cop.md +++ /dev/null @@ -1 +0,0 @@ -* [#11584](https://github.com/rubocop/rubocop/pull/11584): Add `Metrics/CollectionLiteralLength` cop. ([@sambostock][])