Skip to content

Commit

Permalink
Mark Style/SlicingWithRange as safe
Browse files Browse the repository at this point in the history
Follow rubocop#7921.

This PR marks `Style/SlicingWithRange` as safe.
  • Loading branch information
koic committed Oct 15, 2020
1 parent 171eaf3 commit 89cd0e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions config/default.yml
Expand Up @@ -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: >-
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/cops_style.adoc
Expand Up @@ -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
| -
|===

Expand Down

0 comments on commit 89cd0e3

Please sign in to comment.