Pattern: Duplicate hash key
Issue: -
This rule checks for duplicated keys in hash literals. This rule mirrors a warning in Ruby 2.2.
# bad
hash = { food: 'apple', food: 'orange' }
# good
hash = { food: 'apple', other_food: 'orange' }
Pattern: Duplicate hash key
Issue: -
This rule checks for duplicated keys in hash literals. This rule mirrors a warning in Ruby 2.2.
# bad
hash = { food: 'apple', food: 'orange' }
# good
hash = { food: 'apple', other_food: 'orange' }