Skip to content

Commit

Permalink
Merge pull request #149 from eugeneius/ancestors_include_unsafe
Browse files Browse the repository at this point in the history
Mark Performance/AncestorsInclude as unsafe
  • Loading branch information
koic committed Jul 11, 2020
2 parents 809fae5 + 38cafde commit e7de2ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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

* [#149](https://github.com/rubocop-hq/rubocop-performance/pull/149): Mark `Performance/AncestorsInclude` as unsafe. ([@eugeneius][])

## 1.7.0 (2020-07-07)

### New features
Expand Down
1 change: 1 addition & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Performance/AncestorsInclude:
Description: 'Use `A <= B` instead of `A.ancestors.include?(B)`.'
Reference: 'https://github.com/JuanitoFatas/fast-ruby#ancestorsinclude-vs--code'
Enabled: 'pending'
Safe: false
VersionAdded: '1.7'

Performance/BigDecimalWithNumericArgument:
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cops_performance.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Pending
| Yes
| Yes
| No
| Yes (Unsafe)
| 1.7
| -
|===
Expand Down

0 comments on commit e7de2ed

Please sign in to comment.