Skip to content

Commit

Permalink
[Fix #197] Disable Performance/ArraySemiInfiniteRangeSlice cop
Browse files Browse the repository at this point in the history
This cop was created due to a mistake in microbenchmark
Refer #175 (comment)

Closes #197, #198
  • Loading branch information
tejasbubane committed Nov 23, 2020
1 parent fd9e060 commit 4620f29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Changes

* [#197](https://github.com/rubocop-hq/rubocop-performance/pull/197): Disable `Performance/ArraySemiInfiniteRangeSlice` cop. ([@tejasbubane][])

## 1.9.0 (2020-11-17)

### New features
Expand Down
3 changes: 3 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Performance/AncestorsInclude:
Performance/ArraySemiInfiniteRangeSlice:
Description: 'Identifies places where slicing arrays with semi-infinite ranges can be replaced by `Array#take` and `Array#drop`.'
Enabled: pending
# This cop was created due to a mistake in microbenchmark
# Refer https://github.com/rubocop-hq/rubocop-performance/pull/175#issuecomment-731892717
Enabled: false
VersionAdded: '1.9'

Performance/BigDecimalWithNumericArgument:
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_performance.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ NOTE: Required Ruby version: 2.7
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Pending
| Disabled
| Yes
| Yes
| 1.9
Expand Down

0 comments on commit 4620f29

Please sign in to comment.