Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow reorder on FindEach cop

Oliver Güntherdffc045deb58
diff --git a/.rubocop.yml b/.rubocop.yml
index addb52904d6..821c3902e52 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -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: