Closed
Description
I accidentally wrote the following code:
scope :visible, -> { where(visible: true) }
scope :hidden, -> { where(visible: true) }
It'd be great to detect that the same scope is defined twice, because this most likely is always an error.
Describe the solution you'd like
Register an offense when multiple scopes have identical bodies.
Describe alternatives you've considered
N/A
Additional context
N/A
Activity