From a06a4e6b34286819f2c7a4443e6e88d6ea63527b Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sun, 28 Nov 2021 15:05:23 +0900 Subject: [PATCH] Change from `AutoCorrect: false` to `SafeAutoCorrect: false` for `Performance/CaseWhenSplat` Follow up to https://github.com/rubocop/rubocop/pull/6177. This `AutoCorrect: false` looks like it was set when there was no way to safe autocorrect by `SafeAutocorrect: false`. --- ...nmark_autocorrect_false_from_performance_case_when_splat.md | 1 + config/default.yml | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelog/change_unmark_autocorrect_false_from_performance_case_when_splat.md diff --git a/changelog/change_unmark_autocorrect_false_from_performance_case_when_splat.md b/changelog/change_unmark_autocorrect_false_from_performance_case_when_splat.md new file mode 100644 index 0000000000..882bbada70 --- /dev/null +++ b/changelog/change_unmark_autocorrect_false_from_performance_case_when_splat.md @@ -0,0 +1 @@ +* [#274](https://github.com/rubocop/rubocop-performance/pull/274): Unmark `AutoCorrect: false` from `Performance/CaseWhenSplat`. ([@koic][]) diff --git a/config/default.yml b/config/default.yml index 1d0c50119d..dfe1ba6ed7 100644 --- a/config/default.yml +++ b/config/default.yml @@ -43,10 +43,9 @@ Performance/CaseWhenSplat: Reordering `when` conditions with a splat to the end of the `when` branches can improve performance. Enabled: false - AutoCorrect: false SafeAutoCorrect: false VersionAdded: '0.34' - VersionChanged: '0.59' + VersionChanged: '<>' Performance/Casecmp: Description: >-