mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Allow reorder on FindEach cop
This commit is contained in:
@@ -211,6 +211,15 @@ Rails/DynamicFindBy:
|
||||
Whitelist:
|
||||
- find_by_login
|
||||
|
||||
# Allow reorder to prevent find each cop triggering
|
||||
Rails/FindEach:
|
||||
AllowedMethods:
|
||||
- order
|
||||
- reorder
|
||||
- limit
|
||||
- select
|
||||
- lock
|
||||
|
||||
# We have config.active_record.belongs_to_required_by_default = false ,
|
||||
# which means, we do have to declare presence validators on belongs_to relations.
|
||||
Rails/RedundantPresenceValidationOnBelongsTo:
|
||||
|
||||
Reference in New Issue
Block a user