Rubocop Performance Versions Save

An extension of RuboCop focused on code performance checks.

v1.15.2

1 year ago

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

v1.15.1

1 year ago

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)

v1.15.0

1 year ago

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)

v1.14.3

1 year ago

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)

v1.14.2

1 year ago

Bug fixes

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

v1.14.1

1 year ago

Bug fixes

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

v1.14.0

1 year ago

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)

v1.13.3

2 years ago

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)

v1.13.2

2 years ago

Bug fixes

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

v1.13.1

2 years ago

Bug fixes

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