Skip to content

Releases: rubocop/rubocop-performance

RuboCop Performance v1.25.0

01 Apr 02:49
Compare
Choose a tag to compare

New features

  • #496: Support it block parameter in Performance cops. (@koic)

Bug fixes

  • #494: Fix Performance/FixedSize false positive when count is called with a numblock. (@dvandersluis)
  • #492: Fix false positives for Performance/StringIdentifierArgument when using interpolated string argument. (@koic)

Changes

  • #482: Change Performance/CollectionLiteralInLoop to not register offenses for Array#include? that are optimized directly in Ruby. (@earlopain)

RuboCop Performance 1.24.0

15 Feb 16:08
Compare
Choose a tag to compare

New features

  • #490: Pluginfy RuboCop Performance. (@koic)
  • #462: Add new Performance/ZipWithoutBlock cop that checks patterns like .map { |id| [id] } or .map { [_1] } and can replace them with .zip. (@corsonknowles)

Bug fixes

  • #484: Fix Performance/CaseWhenSplat cop error on when node without body. (@viralpraxis)

RuboCop Performance 1.23.1

04 Jan 06:26
Compare
Choose a tag to compare

Bug fixes

  • #478: Fix Performance/RedundantStringChars cop error in case of implicit receiver. (@viralpraxis)
  • #480: Fix Performance/Squeeze cop error on frozen AST string node value. (@viralpraxis)

RuboCop Performance 1.23.0

14 Nov 18:47
Compare
Choose a tag to compare

New features

RuboCop Performance 1.22.1

17 Sep 06:18
Compare
Choose a tag to compare

Bug fixes

  • #468: Fix false positives for Performance/BigDecimalWithNumericArgument when using float argument for BigDecimal. (@koic)

RuboCop Performance 1.22.0

16 Sep 08:22
Compare
Choose a tag to compare

Bug fixes

  • #454: Fix false positives for Performance/BigDecimalWithNumericArgument when using BigDecimal 3.1+. (@koic)

Changes

  • #385: Disable Performance/BlockGivenWithExplicitBlock by default. (@earlopain)
  • #407: Make Performance/DoubleStartEndWith aware of safe navigation. (@earlopain)

RuboCop Performance 1.21.1

16 Jun 06:53
Compare
Choose a tag to compare

Bug fixes

  • #452: Fix an error for Performance/RedundantEqualityComparisonBlock when the block is empty. (@earlopain)

RuboCop Performance 1.21.0

30 Mar 10:15
Compare
Choose a tag to compare

New features

  • #446: Support Prism as a Ruby parser (experimental). (@koic)

Bug fixes

  • #437: Fix a false positive for Performance/ChainArrayAllocation when using select with block argument after select. (@koic)
  • #448: Fix a false positive for Performance/RedundantBlockCall when using block.call with block argument. (@koic)

Changes

RuboCop Performance 1.20.2

10 Jan 05:35
Compare
Choose a tag to compare

Bug fixes

  • #425: Fix a false positive for Performance/StringIdentifierArgument when using string interpolation with methods that don't support symbols with :: inside them. (@earlopain)

RuboCop Performance 1.20.1

25 Dec 00:56
Compare
Choose a tag to compare

Bug fixes

  • #428: Fix false negatives for Performance/StringIdentifierArgument when using multiple string arguments. (@koic)