Bug fixes
- #164: Fix an error for
Performance/CollectionLiteralInLoop
when a method fromEnumerable
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 forinject(&:+)
. (@eugeneius)