Skip to content

Releases: rubocop/rubocop-performance

RuboCop Performance 1.18.0

21 May 01:50
Compare
Choose a tag to compare

Bug fixes

  • #359: Fix a false positive for Performance/RedundantEqualityComparisonBlock when the block variable is used on both sides of ==. (@koic)
  • #351: Fix an incorrect autocorrect for Performance/ConstantRegexp and Performance/RegexpMatch when autocorrecting both at the same time. (@fatkodima)

Changes

RuboCop Performance 1.17.1

09 Apr 07:13
Compare
Choose a tag to compare

Bug fixes

  • #352: Fix the default config for AllowRegexpMatch option of Performance/RedundantEqualityComparisonBlock. (@koic)

RuboCop Performance 1.17.0

09 Apr 07:13
Compare
Choose a tag to compare

New features

  • #347: Add AllowRegexpMatch option to Performance/RedundantEqualityComparisonBlock. (@koic)

Bug fixes

  • #346: Fix a false positive for Performance/StringIdentifierArgument when using a command method with receiver. (@koic)
  • #344: Fix Performance/FlatMap autocorrection for chained methods on separate lines. (@fatkodima)

RuboCop Performance 1.16.0

06 Feb 03:01
Compare
Choose a tag to compare

Changes

  • #332: Register offenses for variables against regexes in Performance/StringInclude. (@fatkodima)

RuboCop Performance 1.15.2

25 Dec 06:07
Compare
Choose a tag to compare

Bug fixes

  • #313: Fix a false negative for Performance/RedundantStringChars when using str.chars.last without argument. (@koic)
  • #321: Fix a false positive for Performance/Sum when using TargetRubyVersion is 2.3 or lower. (@koic)
  • #314: Fix Performance/RegexpMatch to handle ::Regexp. (@fatkodima)

Changes

RuboCop Performance 1.15.1

16 Nov 03:05
Compare
Choose a tag to compare

Bug fixes

  • #309: Fix an error for Performance/MapCompact when using map(&:do_something).compact and there is a line break after map.compact and assigning with ||=. (@koic)

Changes

  • #307: Support autocorrection even if reject is used on Performance/Count. (@r7kamura)

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)