Skip to content

Bump rubocop-performance from 1.8.0 to 1.8.1

Bumps rubocop-performance from 1.8.0 to 1.8.1.

Release notes

Sourced from rubocop-performance's releases.

RuboCop Performance 1.8.1

Bug fixes

  • #164: Fix an error for Performance/CollectionLiteralInLoop when a method from Enumerable is called with no receiver. (@eugeneius)
  • #165: Fix a false positive for Performance/Sum when using initial value argument is a variable. (@koic)

Changes

  • #163: Change Performance/Detect to also detect offenses when index 0 or -1 is used instead (ie. detect{ ... }[0]). (@dvandersluis)
  • #168: Extend Performance/Sum to register an offense for inject(&:+). (@eugeneius)
Changelog

Sourced from rubocop-performance's changelog.

1.8.1 (2020-09-19)

Bug fixes

  • #164: Fix an error for Performance/CollectionLiteralInLoop when a method from Enumerable is called with no receiver. (@eugeneius)
  • #165: Fix a false positive for Performance/Sum when using initial value argument is a variable. (@koic)

Changes

  • #163: Change Performance/Detect to also detect offenses when index 0 or -1 is used instead (ie. detect{ ... }[0]). (@dvandersluis)
  • #168: Extend Performance/Sum to register an offense for inject(&:+). (@eugeneius)
Commits
  • 5d5de8b Cut 1.8.1
  • 4bfca8f Merge pull request #168 from eugeneius/sum_block_pass
  • 19223fc Handle inject(&:+) in Performance/Sum
  • 6d7e45f Merge pull request #167 from dvandersluis/detect-indexed
  • 627f47d Bump rubocop-ast requirement to >= 0.4.0
  • 3823409 [Fix #163] Detect array indexes for Performance/Detect
  • a117b59 Merge pull request #166 from koic/fix_false_positive_for_performance_sum
  • 61578d9 [Fix #165] Fix a false positive for Performance/Sum
  • 5da259b Merge pull request #164 from eugeneius/collection_literal_in_loop_no_receiver
  • 1c23eba Handle Enumerable methods called with no receiver
  • Additional commits viewable in compare view

Merge request reports

Loading