Enable rails/findEach Rubocop cop
This cop enforce the use of `find_each` instead of `each`. Closes #1535
This commit is contained in:
parent
4d895ae3bc
commit
d160c22a0b
3 changed files with 5 additions and 9 deletions
|
|
@ -154,14 +154,6 @@ Rails/FindBy:
|
|||
- 'app/models/ticket_purchase.rb'
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/FindEach:
|
||||
Exclude:
|
||||
- 'app/models/conference.rb'
|
||||
|
||||
# Offense count: 7
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue