Skip to content

Commit

Permalink
Make cop status pending until RuboCop Performance 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 29, 2020
1 parent 2757251 commit e8bc8e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Performance/AncestorsInclude:
Description: 'Use `A <= B` instead of `A.ancestors.include?(B)`.'
Reference: 'https://github.com/JuanitoFatas/fast-ruby#ancestorsinclude-vs--code'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/BigDecimalWithNumericArgument:
Description: 'Convert numeric argument to string before passing to BigDecimal.'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/BindCall:
Expand Down Expand Up @@ -185,12 +185,12 @@ Performance/RedundantMerge:

Performance/RedundantSortBlock:
Description: 'Use `sort` instead of `sort { |a, b| a <=> b }`.'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/RedundantStringChars:
Description: 'Checks for redundant `String#chars`.'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/RegexpMatch:
Expand All @@ -209,7 +209,7 @@ Performance/ReverseEach:

Performance/ReverseFirst:
Description: 'Use `last(n).reverse` instead of `reverse.first(n)`.'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/Size:
Expand All @@ -222,13 +222,13 @@ Performance/Size:

Performance/SortReverse:
Description: 'Use `sort.reverse` instead of `sort { |a, b| b <=> a }`.'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/Squeeze:
Description: "Use `squeeze('a')` instead of `gsub(/a+/, 'a')`."
Reference: 'https://github.com/JuanitoFatas/fast-ruby#remove-extra-spaces-or-other-contiguous-characters-code'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

Performance/StartWith:
Expand All @@ -246,7 +246,7 @@ Performance/StartWith:

Performance/StringInclude:
Description: 'Use `String#include?` instead of a regex match with literal-only pattern.'
Enabled: true
Enabled: 'pending'
VersionAdded: '1.7'

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

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand Down Expand Up @@ -35,7 +35,7 @@ A <= B
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand Down Expand Up @@ -1080,7 +1080,7 @@ hash[:b] = 2
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand All @@ -1106,7 +1106,7 @@ array.sort
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand Down Expand Up @@ -1278,7 +1278,7 @@ change them to use `reverse_each` instead.
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand Down Expand Up @@ -1360,7 +1360,7 @@ Hash(key: :value).size
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand All @@ -1386,7 +1386,7 @@ array.sort.reverse
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand Down Expand Up @@ -1498,7 +1498,7 @@ for receiver is multiline string.
|===
| Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged

| Enabled
| Pending
| Yes
| Yes
| 1.7
Expand Down

0 comments on commit e8bc8e7

Please # to comment.