Pattern: Use of map
in a chain
Issue: -
Checks if the map method is used in a chain.
Autocorrection is not supported because an appropriate block variable name cannot be determined automatically.
# bad
array.map(&:foo).map(&:bar)
# good
array.map { |item| item.foo.bar }