bbatsov/rubocop — pull request #1033 by geniou (2014-04-25 15:14:48+00:00)
Title: Add EachWithObject cop

This cop looks for inject / reduce calls where the passed in object is returned at the end and so could be replace by each_with_object without the need to return the object at the end.

What do you think about this? I like the idea not have to return the object at the end of the block.