Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance 1.7.1
Bug fixes
- #147: Fix an error for
Performance/AncestorsInclude
when usingancestors.include?
without receiver. (@koic) - #150: Fix an incorrect autocorrect for
Performance/BigDecimalWithNumericArgument
when a precision is specified. (@eugeneius)
Changes
- #149: Mark
Performance/AncestorsInclude
as unsafe. (@eugeneius) - #145: Mark
Performance/StringInclude
asSafeAutocorrect: false
and disable autocorrect by default. (@koic)
RuboCop Performance 1.7.0
New features
- #141: Add new
Performance/RedundantStringChars
cop. (@fatkodima) - #127: Add new
Performance/IoReadlines
cop. (@fatkodima) - #128: Add new
Performance/ReverseFirst
cop. (@fatkodima) - #132: Add new
Performance/RedundantSortBlock
cop. (@fatkodima) - #125: Support
Array()
andHash()
methods forPerformance/Size
cop. (@fatkodima) - #124: Add new
Performance/Squeeze
cop. (@fatkodima) - #129: Add new
Performance/BigDecimalWithNumericArgument
cop. (@fatkodima) - #130: Add new
Performance/SortReverse
cop. (@fatkodima) - #81: Add new
Performance/StringInclude
cop. (@fatkodima) - #123: Add new
Performance/AncestorsInclude
cop. (@fatkodima) - #125: Support
Range#member?
method forPerformance/RangeInclude
cop. (@fatkodima)
Changes
RuboCop Performance 1.6.1
New features
- #115: Support
String#sub
andString#sub!
methods forPerformance/DeletePrefix
andPerformance/DeleteSuffix
cops. (@fatkodima)
Bug fixes
- #111: Fix an error for
Performance/DeletePrefix
andPerformance/DeleteSuffix
cops when using autocorrection with RuboCop 0.81 or lower. (@koic) - #118: Fix a false positive for
Performance/DeletePrefix
,Performance/DeleteSuffix
,Performance/StartWith
, andPerformance/EndWith
cops when receiver is multiline string. (@koic)
RuboCop Performance 1.6.0
New features
- #77: Add new
Performance/BindCall
cop. (@koic) - #105: Add new
Performance/DeletePrefix
andPerformance/DeleteSuffix
cops. (@koic) - #107: Support regexp metacharacter
^
forPerformance/StartWith
cop and regexp metacharacter$
forPerformance/EndWith
cop. (@koic)
Bug fixes
- #55: Fix an incorrect autocorrect for
Performance/RegexpMatch
when usingstr.=~(/regexp/)
. (@koic) - #108: Fix an incorrect autocorrect for
Performance/ReverseEach
when there is a newline between reverse and each. (@joe-sharp, @dischorde, @siegfault)
Changes
RuboCop Performance 1.5.2
RuboCop Performance 1.5.1
Bug fixes
- #82: Let
Performance/StartWith
andPerformance/EndWith
correctRegexp#match?
andRegexp#=~
. (@eugeneius)
RuboCop Performance 1.5.0
Bug fixes
- #74: Fix an error for
Performance/RedundantMerge
whenMaxKeyValuePairs
option is set tonull
. (@koic) - #70: This PR fixes a false negative for
Performance/FlatMap
when using symbol to proc operator argument ofmap
method. (@koic, @splattael)
Changes
- #69: Remove
SafeMode
fromPerformance/Count
andPerformance/Detect
. SetSafeAutoCorrect
tofalse
for these cops by default. (@rrosenblum)
RuboCop Performance 1.4.1
RuboCop Performance 1.4.0
Bug fixes
- #54: Fix
Performance/FixedSize
to accept const assign with some operation. (@tejasbubane) - #61: Fix a false negative for
Performance/RegexpMatch
when using RuboCop 0.71 or higher. (@koic)
RuboCop Performance 1.3.0
Bug fixes
- #48: Reduce
Performance/RegexpMatch
false positive by only flaggingmatch
used with Regexp/String/Symbol literals. (@dduugg)
Changes
- #52: Drop support for Ruby 2.2. (@bquorning)