Skip to content

Releases: rubocop/rubocop-performance

RuboCop Performance 1.7.1

17 Jul 15:48
Compare
Choose a tag to compare

Bug fixes

  • #147: Fix an error for Performance/AncestorsInclude when using ancestors.include? without receiver. (@koic)
  • #150: Fix an incorrect autocorrect for Performance/BigDecimalWithNumericArgument when a precision is specified. (@eugeneius)

Changes

  • #149: Mark Performance/AncestorsInclude as unsafe. (@eugeneius)
  • #145: Mark Performance/StringInclude as SafeAutocorrect: false and disable autocorrect by default. (@koic)

RuboCop Performance 1.7.0

07 Jul 00:30
Compare
Choose a tag to compare

New features

Changes

  • #138: Drop support for RuboCop 0.81 or lower. (@koic)

RuboCop Performance 1.6.1

05 Jun 03:25
Compare
Choose a tag to compare

New features

  • #115: Support String#sub and String#sub! methods for Performance/DeletePrefix and Performance/DeleteSuffix cops. (@fatkodima)

Bug fixes

  • #111: Fix an error for Performance/DeletePrefix and Performance/DeleteSuffix cops when using autocorrection with RuboCop 0.81 or lower. (@koic)
  • #118: Fix a false positive for Performance/DeletePrefix, Performance/DeleteSuffix, Performance/StartWith, and Performance/EndWith cops when receiver is multiline string. (@koic)

RuboCop Performance 1.6.0

21 May 16:23
Compare
Choose a tag to compare

New features

  • #77: Add new Performance/BindCall cop. (@koic)
  • #105: Add new Performance/DeletePrefix and Performance/DeleteSuffix cops. (@koic)
  • #107: Support regexp metacharacter ^ for Performance/StartWith cop and regexp metacharacter $ for Performance/EndWith cop. (@koic)

Bug fixes

  • #55: Fix an incorrect autocorrect for Performance/RegexpMatch when using str.=~(/regexp/). (@koic)
  • #108: Fix an incorrect autocorrect for Performance/ReverseEach when there is a newline between reverse and each. (@joe-sharp, @dischorde, @siegfault)

Changes

  • #103: (BREAKING) Drop support for Ruby 2.3. (@koic)
  • #101: Mark unsafe for Performance/Casecmp cop. (@koic)

RuboCop Performance 1.5.2

25 Dec 06:39
Compare
Choose a tag to compare

Bug fixes

  • #86: Fix an incorrect autocorrect for Performance/RedundantMerge when using an empty hash argument. (@koic)

RuboCop Performance 1.5.1

13 Nov 17:19
Compare
Choose a tag to compare

Bug fixes

  • #82: Let Performance/StartWith and Performance/EndWith correct Regexp#match? and Regexp#=~. (@eugeneius)

RuboCop Performance 1.5.0

01 Oct 19:31
Compare
Choose a tag to compare

Bug fixes

  • #74: Fix an error for Performance/RedundantMerge when MaxKeyValuePairs option is set to null. (@koic)
  • #70: This PR fixes a false negative for Performance/FlatMap when using symbol to proc operator argument of map method. (@koic, @splattael)

Changes

  • #69: Remove SafeMode from Performance/Count and Performance/Detect. Set SafeAutoCorrect to false for these cops by default. (@rrosenblum)

RuboCop Performance 1.4.1

29 Jul 04:33
Compare
Choose a tag to compare

Bug fixes

  • #67: Fix an error for Performance/RedundantMerge when MaxKeyValuePairs option is set to null. (@koic)
  • #73: Fix a false negative for Performance/RegexpMatch when MatchData is not detected in if branch of guard condition. (@koic)

RuboCop Performance 1.4.0

20 Jun 06:14
Compare
Choose a tag to compare

Bug fixes

  • #54: Fix Performance/FixedSize to accept const assign with some operation. (@tejasbubane)
  • #61: Fix a false negative for Performance/RegexpMatch when using RuboCop 0.71 or higher. (@koic)

RuboCop Performance 1.3.0

13 May 09:44
Compare
Choose a tag to compare

Bug fixes

  • #48: Reduce Performance/RegexpMatch false positive by only flagging match used with Regexp/String/Symbol literals. (@dduugg)

Changes