diff --git a/CHANGELOG.md b/CHANGELOG.md index 3551215a559..f55cd7fbbc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * [#8892](https://github.com/rubocop-hq/rubocop/issues/8892): Fix an error for `Style/StringConcatenation` when correcting nested concatenable parts. ([@fatkodima][]) +### Changes + +* [#8890](https://github.com/rubocop-hq/rubocop/pull/8890): Mark `Style/SlicingWithRange` as safe. ([@koic][]) + ## 0.93.1 (2020-10-12) ### Bug fixes diff --git a/config/default.yml b/config/default.yml index f57334fa916..dc73415d4f8 100644 --- a/config/default.yml +++ b/config/default.yml @@ -4116,8 +4116,7 @@ Style/SingleLineMethods: Style/SlicingWithRange: Description: 'Checks array slicing is done with endless ranges when suitable.' Enabled: pending - VersionAdded: '0.83' - Safe: false + VersionAdded: '0.94' Style/SoleNestedConditional: Description: >- diff --git a/docs/modules/ROOT/pages/cops_style.adoc b/docs/modules/ROOT/pages/cops_style.adoc index 7b0b980ecb2..ff55ac34125 100644 --- a/docs/modules/ROOT/pages/cops_style.adoc +++ b/docs/modules/ROOT/pages/cops_style.adoc @@ -9255,9 +9255,9 @@ NOTE: Required Ruby version: 2.6 | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged | Pending -| No -| Yes (Unsafe) -| 0.83 +| Yes +| Yes +| 0.94 | - |===