diff --git a/CHANGELOG.md b/CHANGELOG.md index 5de696854d94..b88ee38117e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,29 @@ ## master (unreleased) +### New features + +* [#9841](https://github.com/rubocop/rubocop/pull/9841): Support guard `if` and `unless` syntax keywords of Ruby 2.7's pattern matching for `Layout/SpaceAroundKeyword`. ([@koic][]) +* [#9812](https://github.com/rubocop/rubocop/pull/9812): Support auto-correction for `Style/IdenticalConditionalBranches`. ([@koic][]) +* [#9833](https://github.com/rubocop/rubocop/pull/9833): Add new `Style/InPatternThen` cop. ([@koic][]) +* [#9840](https://github.com/rubocop/rubocop/issues/9840): Adds `AllowedReceivers` option for `Style/HashEachMethods`. ([@koic][]) +* [#9818](https://github.com/rubocop/rubocop/pull/9818): Support Ruby 2.7's `in` pattern syntax for `Layout/CaseIndentation`. ([@koic][]) +* [#9793](https://github.com/rubocop/rubocop/issues/9793): Add `Style/QuotedSymbols` to enforce consistency in quoted symbols. ([@dvandersluis][]) +* [#9825](https://github.com/rubocop/rubocop/pull/9825): Add new `Lint/EmptyInPattern` cop. ([@koic][]) +* [#9834](https://github.com/rubocop/rubocop/pull/9834): Add new `Style/MultilineInPatternThen` cop. ([@koic][]) + +### Bug fixes + +* [#9822](https://github.com/rubocop/rubocop/issues/9822): Fix a false directive comment range for `Lint/RedundantCopDisableDirective`. ([@koic][]) +* [#9819](https://github.com/rubocop/rubocop/issues/9819): Fix a false negative for `Style/TopLevelMethodDefinition` when defining a top-level method after a class definition. ([@koic][]) +* [#9836](https://github.com/rubocop/rubocop/issues/9836): Fix incorrect corrections for `Layout/HashAlignment` when a `kwsplat` node is on the same line as a `pair` node with table style. ([@dvandersluis][]) +* [#9805](https://github.com/rubocop/rubocop/pull/9805): Fix a false negative for `Layout/HashAlignment` when set `EnforcedStyle: with_fixed_indentation` of `ArgumentAlignment`. ([@koic][]) +* [#9811](https://github.com/rubocop/rubocop/issues/9811): Fix an error for `Layout/ArgumentAlignment` with `Layout/FirstHashElementIndentation` when setting `EnforcedStyle: with_fixed_indentation`. ([@koic][]) + +### Changes + +* [#9809](https://github.com/rubocop/rubocop/pull/9809): Change `Lint/SymbolConversion` to only quote with double quotes, since `Style/QuotedSymbols` can now correct those to the correct quotes as per configuration. ([@dvandersluis][]) + ## 1.15.0 (2021-05-17) ### New features diff --git a/changelog/change_change_lintsymbolconversion_to_only.md b/changelog/change_change_lintsymbolconversion_to_only.md deleted file mode 100644 index 447c67589158..000000000000 --- a/changelog/change_change_lintsymbolconversion_to_only.md +++ /dev/null @@ -1 +0,0 @@ -* [#9809](https://github.com/rubocop/rubocop/pull/9809): Change `Lint/SymbolConversion` to only quote with double quotes, since `Style/QuotedSymbols` can now correct those to the correct quotes as per configuration. ([@dvandersluis][]) diff --git a/changelog/fix_an_error_for_layout_argument_alignment.md b/changelog/fix_an_error_for_layout_argument_alignment.md deleted file mode 100644 index 30584f763b5d..000000000000 --- a/changelog/fix_an_error_for_layout_argument_alignment.md +++ /dev/null @@ -1 +0,0 @@ -* [#9811](https://github.com/rubocop/rubocop/issues/9811): Fix an error for `Layout/ArgumentAlignment` with `Layout/FirstHashElementIndentation` when setting `EnforcedStyle: with_fixed_indentation`. ([@koic][]) diff --git a/changelog/fix_false_negative_for_layout_hash_alignment.md b/changelog/fix_false_negative_for_layout_hash_alignment.md deleted file mode 100644 index d945e103be76..000000000000 --- a/changelog/fix_false_negative_for_layout_hash_alignment.md +++ /dev/null @@ -1 +0,0 @@ -* [#9805](https://github.com/rubocop/rubocop/pull/9805): Fix a false negative for `Layout/HashAlignment` when set `EnforcedStyle: with_fixed_indentation` of `ArgumentAlignment`. ([@koic][]) diff --git a/changelog/fix_false_negative_for_style_top_level_method_definition.md b/changelog/fix_false_negative_for_style_top_level_method_definition.md deleted file mode 100644 index b064e29b5403..000000000000 --- a/changelog/fix_false_negative_for_style_top_level_method_definition.md +++ /dev/null @@ -1 +0,0 @@ -* [#9819](https://github.com/rubocop/rubocop/issues/9819): Fix a false negative for `Style/TopLevelMethodDefinition` when defining a top-level method after a class definition. ([@koic][]) diff --git a/changelog/fix_false_range_for_lint_redundant_cop_disable_directive.md b/changelog/fix_false_range_for_lint_redundant_cop_disable_directive.md deleted file mode 100644 index 95a1a727974c..000000000000 --- a/changelog/fix_false_range_for_lint_redundant_cop_disable_directive.md +++ /dev/null @@ -1 +0,0 @@ -* [#9822](https://github.com/rubocop/rubocop/issues/9822): Fix a false directive comment range for `Lint/RedundantCopDisableDirective`. ([@koic][]) diff --git a/changelog/fix_fix_incorrect_corrections_for.md b/changelog/fix_fix_incorrect_corrections_for.md deleted file mode 100644 index d2b6db557054..000000000000 --- a/changelog/fix_fix_incorrect_corrections_for.md +++ /dev/null @@ -1 +0,0 @@ -* [#9836](https://github.com/rubocop/rubocop/issues/9836): Fix incorrect corrections for `Layout/HashAlignment` when a `kwsplat` node is on the same line as a `pair` node with table style. ([@dvandersluis][]) diff --git a/changelog/new_add_allowed_receivers_option_for_style_hash_each_methods.md b/changelog/new_add_allowed_receivers_option_for_style_hash_each_methods.md deleted file mode 100644 index aaf213552326..000000000000 --- a/changelog/new_add_allowed_receivers_option_for_style_hash_each_methods.md +++ /dev/null @@ -1 +0,0 @@ -* [#9840](https://github.com/rubocop/rubocop/issues/9840): Adds `AllowedReceivers` option for `Style/HashEachMethods`. ([@koic][]) diff --git a/changelog/new_add_new_lint_empty_in_pattern_cop.md b/changelog/new_add_new_lint_empty_in_pattern_cop.md deleted file mode 100644 index 4d5657cc689e..000000000000 --- a/changelog/new_add_new_lint_empty_in_pattern_cop.md +++ /dev/null @@ -1 +0,0 @@ -* [#9825](https://github.com/rubocop/rubocop/pull/9825): Add new `Lint/EmptyInPattern` cop. ([@koic][]) diff --git a/changelog/new_add_new_style_in_pattern_then_cop.md b/changelog/new_add_new_style_in_pattern_then_cop.md deleted file mode 100644 index 59a698fcee99..000000000000 --- a/changelog/new_add_new_style_in_pattern_then_cop.md +++ /dev/null @@ -1 +0,0 @@ -* [#9833](https://github.com/rubocop/rubocop/pull/9833): Add new `Style/InPatternThen` cop. ([@koic][]) diff --git a/changelog/new_add_new_style_multiline_in_pattern_then_cop.md b/changelog/new_add_new_style_multiline_in_pattern_then_cop.md deleted file mode 100644 index a18fd5dc8982..000000000000 --- a/changelog/new_add_new_style_multiline_in_pattern_then_cop.md +++ /dev/null @@ -1 +0,0 @@ -* [#9834](https://github.com/rubocop/rubocop/pull/9834): Add new `Style/MultilineInPatternThen` cop. ([@koic][]) diff --git a/changelog/new_add_stylequotedsymbols_to_enforce.md b/changelog/new_add_stylequotedsymbols_to_enforce.md deleted file mode 100644 index 809b69f7ca7c..000000000000 --- a/changelog/new_add_stylequotedsymbols_to_enforce.md +++ /dev/null @@ -1 +0,0 @@ -* [#9793](https://github.com/rubocop/rubocop/issues/9793): Add `Style/QuotedSymbols` to enforce consistency in quoted symbols. ([@dvandersluis][]) diff --git a/changelog/new_support_autocorrection_for_identical_conditional_branches.md b/changelog/new_support_autocorrection_for_identical_conditional_branches.md deleted file mode 100644 index aecb151f59bd..000000000000 --- a/changelog/new_support_autocorrection_for_identical_conditional_branches.md +++ /dev/null @@ -1 +0,0 @@ -* [#9812](https://github.com/rubocop/rubocop/pull/9812): Support auto-correction for `Style/IdenticalConditionalBranches`. ([@koic][]) diff --git a/changelog/new_support_guard_if_unless_of_pattern_matching_for_layout_space_around_keyword.md b/changelog/new_support_guard_if_unless_of_pattern_matching_for_layout_space_around_keyword.md deleted file mode 100644 index a35a3f408760..000000000000 --- a/changelog/new_support_guard_if_unless_of_pattern_matching_for_layout_space_around_keyword.md +++ /dev/null @@ -1 +0,0 @@ -* [#9841](https://github.com/rubocop/rubocop/pull/9841): Support guard `if` and `unless` syntax keywords of Ruby 2.7's pattern matching for `Layout/SpaceAroundKeyword`. ([@koic][]) diff --git a/changelog/new_support_in_pattern_syntax_for_layout_case_indentation.md b/changelog/new_support_in_pattern_syntax_for_layout_case_indentation.md deleted file mode 100644 index a1e8f291245a..000000000000 --- a/changelog/new_support_in_pattern_syntax_for_layout_case_indentation.md +++ /dev/null @@ -1 +0,0 @@ -* [#9818](https://github.com/rubocop/rubocop/pull/9818): Support Ruby 2.7's `in` pattern syntax for `Layout/CaseIndentation`. ([@koic][])