Skip to content

Releases: rubocop/rubocop-performance

RuboCop Performance 1.15.0

10 Sep 08:55
Compare
Choose a tag to compare

New features

  • #305: Support numbered parameter for Performance/RedundantSortBlock, Performance/SortReverse, and Performance/TimesMap cops. (@koic)

Bug fixes

  • #299: Fix incorrect documentation URLs when using rubocop --show-docs-url. (@r7kamura)

Changes

  • #297: Support autocorrection on Performance/RedundantMatch when receiver is a Regexp literal. (@r7kamura)

RuboCop Performance 1.14.3

17 Jul 07:17
Compare
Choose a tag to compare

Bug fixes

  • #296: Fix a false negative for Performance/StringIdentifierArgument when using instance_variable_defined?. (@koic)
  • #294: Fix a false negative for Performance/ChainArrayAllocation when using array.first(do_something).uniq. (@koic)

RuboCop Performance 1.14.2

07 Jun 15:45
Compare
Choose a tag to compare

Bug fixes

  • #292: Fix a false positive for Performance/RegexpMatch when TargetRubyVersion: 2.3. (@koic)

RuboCop Performance 1.14.1

04 Jun 17:51
Compare
Choose a tag to compare

Bug fixes

  • #291: Fix Performance/MapCompact autocorrect causing invalid syntax when using multiline map { ... }.compact as an argument for an assignment method. (@QQism)

RuboCop Performance 1.14.0

24 May 02:43
Compare
Choose a tag to compare

Bug fixes

  • #289: Fix a false positive for Performance/StringIdentifierArgument when using namespaced class string argument. (@koic)
  • #288: Recover Ruby 2.4 code analysis using TargetRubyVersion: 2.4. (@koic)

Changes

  • #287: (Compatibility) Drop Ruby 2.5 support. (@koic)

RuboCop Performance 1.13.3

05 Mar 10:00
Compare
Choose a tag to compare

Bug fixes

  • #285: Fix an error for Performance/MapCompact when using map(&:do_something).compact.first and there is a line break after map.compact and receiver. (@ydah)

RuboCop Performance 1.13.2

16 Jan 12:27
Compare
Choose a tag to compare

Bug fixes

  • #281: Fix an error for Performance/BlockGivenWithExplicitBlock when using Ruby 3.1's anonymous block forwarding. (@koic)

RuboCop Performance 1.13.1

01 Jan 14:53
Compare
Choose a tag to compare

Bug fixes

  • #278: Fix a false positive for Performance/StringIdentifierArgument when using attr. (@koic)

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)