All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
The hash contains duplicate keys. While this is allowed by Ruby, this usually happens due to typos, and is, in most cases, unintended.
hash = { fruit: 'apple', fruit: 'orange' }
hash = { fruit: 'apple', another_fruit: 'orange' }