Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance 1.9.2
RuboCop Performance 1.9.1
Bug fixes
- #185: Fix incorrect replacement recommendation for
Performance/ChainArrayAllocation. (@fatkodima)
Changes
- #197: Disable
Performance/ArraySemiInfiniteRangeSlicecop. (@tejasbubane)
RuboCop Performance 1.9.0
New features
- #173: Add new
Performance/BlockGivenWithExplicitBlockcop. (@fatkodima) - #136: Add new
Performance/MethodObjectAsBlockcop. (@fatkodima) - #151: Add new
Performance/ConstantRegexpcop. (@fatkodima) - #175: Add new
Performance/ArraySemiInfiniteRangeSlicecop. (@fatkodima) - #189: Support auto-correction for
Performance/Caller. (@koic) - #171: Extend auto-correction support for
Performance/Sum. (@koic) - #194: Support auto-correction for
Performance/UnfreezeString. (@koic)
Changes
- #181: Change default configuration for
Performance/CollectionLiteralInLooptoEnabled: 'pending'. (@ghiculescu) - #170: Extend
Performance/Sumto register an offense formap { ... }.sum. (@eugeneius) - #179: Change
Performance/Sumto warn about empty arrays, and not register an offense on empty array literals. (@ghiculescu) - #180: Require RuboCop 0.90 or higher. (@koic)
RuboCop Performance 1.8.1
Bug fixes
- #164: Fix an error for
Performance/CollectionLiteralInLoopwhen a method fromEnumerableis called with no receiver. (@eugeneius) - #165: Fix a false positive for
Performance/Sumwhen using initial value argument is a variable. (@koic)
Changes
- #163: Change
Performance/Detectto also detect offenses when index 0 or -1 is used instead (ie.detect{ ... }[0]). (@dvandersluis) - #168: Extend
Performance/Sumto register an offense forinject(&:+). (@eugeneius)
RuboCop Performance 1.8.0
New features
- #140: Add new
Performance/CollectionLiteralInLoopcop. (@fatkodima) - #137: Add new
Performance/Sumcop. (@fatkodima)
Bug fixes
Changes
- #157: Extend
Performance/Detectcop with check forfiltermethod andPerformance/Countcop with checks forfind_allandfiltermethods. (@fatkodima) - #154: Require RuboCop 0.87 or higher. (@koic)
RuboCop Performance 1.7.1
Bug fixes
- #147: Fix an error for
Performance/AncestorsIncludewhen usingancestors.include?without receiver. (@koic) - #150: Fix an incorrect autocorrect for
Performance/BigDecimalWithNumericArgumentwhen a precision is specified. (@eugeneius)
Changes
- #149: Mark
Performance/AncestorsIncludeas unsafe. (@eugeneius) - #145: Mark
Performance/StringIncludeasSafeAutocorrect: falseand disable autocorrect by default. (@koic)
RuboCop Performance 1.7.0
New features
- #141: Add new
Performance/RedundantStringCharscop. (@fatkodima) - #127: Add new
Performance/IoReadlinescop. (@fatkodima) - #128: Add new
Performance/ReverseFirstcop. (@fatkodima) - #132: Add new
Performance/RedundantSortBlockcop. (@fatkodima) - #125: Support
Array()andHash()methods forPerformance/Sizecop. (@fatkodima) - #124: Add new
Performance/Squeezecop. (@fatkodima) - #129: Add new
Performance/BigDecimalWithNumericArgumentcop. (@fatkodima) - #130: Add new
Performance/SortReversecop. (@fatkodima) - #81: Add new
Performance/StringIncludecop. (@fatkodima) - #123: Add new
Performance/AncestorsIncludecop. (@fatkodima) - #125: Support
Range#member?method forPerformance/RangeIncludecop. (@fatkodima)
Changes
RuboCop Performance 1.6.1
New features
- #115: Support
String#subandString#sub!methods forPerformance/DeletePrefixandPerformance/DeleteSuffixcops. (@fatkodima)
Bug fixes
- #111: Fix an error for
Performance/DeletePrefixandPerformance/DeleteSuffixcops when using autocorrection with RuboCop 0.81 or lower. (@koic) - #118: Fix a false positive for
Performance/DeletePrefix,Performance/DeleteSuffix,Performance/StartWith, andPerformance/EndWithcops when receiver is multiline string. (@koic)
RuboCop Performance 1.6.0
New features
- #77: Add new
Performance/BindCallcop. (@koic) - #105: Add new
Performance/DeletePrefixandPerformance/DeleteSuffixcops. (@koic) - #107: Support regexp metacharacter
^forPerformance/StartWithcop and regexp metacharacter$forPerformance/EndWithcop. (@koic)
Bug fixes
- #55: Fix an incorrect autocorrect for
Performance/RegexpMatchwhen usingstr.=~(/regexp/). (@koic) - #108: Fix an incorrect autocorrect for
Performance/ReverseEachwhen there is a newline between reverse and each. (@joe-sharp, @dischorde, @siegfault)