codeclimate/codeclimate-rubocop

View on GitHub
config/contents/style/empty_literal.md

Summary

Maintainability
Test Coverage
This cop checks for the use of a method, the result of which
would be a literal, like an empty array, hash or string.

### Example:
    # bad
    a = Array.new
    h = Hash.new
    s = String.new

    # good
    a = []
    h = {}
    s = ''