Skip to content

Releases: rubocop/rubocop-performance

RuboCop Performance 1.13.0

25 Dec 08:26
Compare
Choose a tag to compare

New features

  • #276: Add new Performance/StringIdentifierArgument cop. (@koic)
  • #204: Add Performance/Sum option to ignore potential false positives. (@leoarnold)
  • #269: Add #to_d support to BigDecimalWithNumericArgument. (@leoarnold)

Bug fixes

  • #277: Fix an incorrect autocorrect for Performance/MapCompact when using map.compact.first and there is a line break after map.compact and receiver. (@koic)
  • #273: Fix an incorrect autocorrect for Performance/RedundantStringChars when using str.chars[0]. (@koic)

Changes

  • #270: Mark Performance/Sum auto-correction as unsafe and extend documentation. (@leoarnold)
  • #274: Unmark AutoCorrect: false from Performance/CaseWhenSplat. (@koic)
  • #275: Unmark AutoCorrect: false from Performance/TimesMap. (@koic)

RuboCop Performance 1.12.0

31 Oct 02:54
Compare
Choose a tag to compare

New features

  • #267: Add new Performance/ConcurrentMonotonicTime cop. (@koic)

Bug fixes

  • #261: Fix a false negative for Performance/RedundantBlockCall when using block.call in a class method'. (@koic)
  • #264: Fix error in Performance/Sum when method has no brackets. (@mvz)

Changes

  • #263: Unmark AutoCorrect: false from Performance/StringInclude. (@koic)

RuboCop Performance 1.11.5

18 Aug 03:17
Compare
Choose a tag to compare

Bug fixes

  • #255: Fix a false positive for Performance/RedundantEqualityComparisonBlock when using block argument is used for an argument of operand. (@koic)
  • #257: Fix an incorrect auto-correct for Performance/MapCompact when using multi-line collection.map { ... }.compact as a method argument. (@koic)

RuboCop Performance 1.11.4

07 Jul 08:44
Compare
Choose a tag to compare

Bug fixes

  • #247: Fix an incorrect auto-correct for Performance/MapCompact when using multi-line trailing dot method calls. (@koic)
  • #249: Fix a false positive for Performance/RedundantStringChars when using str.chars.last and str.chars.drop. (@koic)
  • #252: Fix an incorrect auto-correct for Performance/UnfreezeString when invoking a method after String.new with a string. (@koic)

Changes

  • #245: Mark Performance/DeletePrefix and Performance/DeleteSuffix as unsafe. (@koic)

RuboCop Performance 1.11.3

06 May 00:53
Compare
Choose a tag to compare

Bug fixes

  • #242: Fix an error for Performance/MapCompact when using multiline map { ... }.compact and assigning to return value. (@koic)

RuboCop Performance 1.11.2

05 May 00:48
Compare
Choose a tag to compare

Bug fixes

  • #238: Fix an incorrect auto-correct for Performance/MapCompact when invoking a method after map { ... }.compact on the same line. (@koic)

RuboCop Performance 1.11.1

01 May 15:45
Compare
Choose a tag to compare

Bug fixes

  • #236: Fix an incorrect auto-correct for Performance/MapCompact when using multi-line leading dot method calls. (@koic)

RuboCop Performance 1.11.0

21 Apr 16:27
Compare
Choose a tag to compare

New features

  • #229: Add new Performance/MapCompact cop. (@koic)
  • #178: Add new Performance/SelectMap cop. (@koic)

Bug fixes

  • #230: Fix a false positive for Performance/ChainArrayAllocation when using Enumerable#lazy. (@koic)

Changes

RuboCop Performance 1.10.2

22 Mar 15:54
Compare
Choose a tag to compare

Bug fixes

  • #162: Fix a false positive for Performance/RedundantBlockCall when an optional block that is overridden by block variable. (@koic)
  • #36: Fix a false positive for Performance/ReverseEach when each is called on reverse and using the result value. (@koic)
  • #224: Fix a false positive for Style/RedundantEqualityComparisonBlock when using one argument with comma separator in block argument. (@koic)
  • #225: Fix a false positive for Style/RedundantEqualityComparisonBlock when using any? with === comparison block and block argument is not used as a receiver for ===. (@koic)
  • #222: Fix a false positive for Performance/RedundantSplitRegexpArgument when split method argument is exactly one spece regexp / /. (@koic)

RuboCop Performance 1.10.1

01 Mar 23:03
Compare
Choose a tag to compare

Bug fixes

  • #214: Fix a false positive for Performance/RedundantEqualityComparisonBlock when using multiple block arguments. (@koic)
  • #216: Fix a false positive for Performance/RedundantSplitRegexpArgument when using split method with ignore case regexp option. (@koic)
  • #217: Fix a false positive for Performance/RedundantEqualityComparisonBlock when using block argument is used for an argument of is_a. (@koic)