Releases: rubocop/rubocop-performance
Releases · rubocop/rubocop-performance
RuboCop Performance v1.26.1
RuboCop Performance v1.26.0
Bug fixes
- #444: Fix an incorrect autocorrect for
Performance/BlockGivenWithExplicitBlockwhen usingNaming/BlockForwarding's autocorrection together. (@a-lavis) - #500: Mark
Performance/MapCompactcop as unsafe. (@jbpextra) - #498: Fix
Performance/Countcop error on empty selector block. (@viralpraxis) - #504: Fix autocorrection syntax error for
Performance/Countwith multiline calls. (@lovro-bikic)
Changes
- #512: Detect negated conditions like
!foo.start_with('bar') && !foo.start_with('baz')withPerformance/DoubleStartEndWith. (@earlopain)
RuboCop Performance v1.25.0
New features
Bug fixes
- #494: Fix
Performance/FixedSizefalse positive whencountis called with anumblock. (@dvandersluis) - #492: Fix false positives for
Performance/StringIdentifierArgumentwhen using interpolated string argument. (@koic)
Changes
- #482: Change
Performance/CollectionLiteralInLoopto not register offenses forArray#include?that are optimized directly in Ruby. (@earlopain)
RuboCop Performance 1.24.0
New features
- #490: Pluginfy RuboCop Performance. (@koic)
- #462: Add new
Performance/ZipWithoutBlockcop that checks patterns like.map { |id| [id] }or.map { [_1] }and can replace them with.zip. (@corsonknowles)
Bug fixes
- #484: Fix
Performance/CaseWhenSplatcop error onwhennode without body. (@viralpraxis)
RuboCop Performance 1.23.1
Bug fixes
- #478: Fix
Performance/RedundantStringCharscop error in case of implicit receiver. (@viralpraxis) - #480: Fix
Performance/Squeezecop error on frozen AST string node value. (@viralpraxis)
RuboCop Performance 1.23.0
New features
- #474: Add new
Performance/StringBytesizecop. (@viralpraxis)
RuboCop Performance 1.22.1
RuboCop Performance 1.22.0
Bug fixes
- #454: Fix false positives for
Performance/BigDecimalWithNumericArgumentwhen using BigDecimal 3.1+. (@koic)
Changes
- #385: Disable
Performance/BlockGivenWithExplicitBlockby default. (@earlopain) - #407: Make
Performance/DoubleStartEndWithaware of safe navigation. (@earlopain)
RuboCop Performance 1.21.1
Bug fixes
- #452: Fix an error for
Performance/RedundantEqualityComparisonBlockwhen the block is empty. (@earlopain)
RuboCop Performance 1.21.0
New features
Bug fixes
- #437: Fix a false positive for
Performance/ChainArrayAllocationwhen usingselectwith block argument afterselect. (@koic) - #448: Fix a false positive for
Performance/RedundantBlockCallwhen usingblock.callwith block argument. (@koic)
Changes
- #240: Disable
Performance/Casecmpcop by default. (@parkerfinch)