Programming Search⌘K

Ruby lints, page 3 of 6

The lint rules of Ruby, with what each one finds. This page has 1,016 cards.

Checks for uses `Enumerable#all?`, `Enumerable#any?`, `Enumerable#one?`, or `Enumerable#none?` are compared with `===` or similar methods in block. Performance/RedundantEqualityComparisonBlock

It is a pending cop, so RuboCop enables it only when the configuration turns on new cops. It was added in rubocop-performance 1.10. It is not safe, so it can report false positives.

Code
Performance/RedundantEqualityComparisonBlock

Source: github.com, docs.rubocop.org. JSON record. This entry is a card. Help write this page.