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

add rubocop rule Rails/RequireDependency

Christophe Bliarde9e2887e0612
diff --git a/.rubocop.yml b/.rubocop.yml
index 7a3b2c0d39d..adf558b8dbc 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -139,6 +139,10 @@ Rails/HttpPositionalArguments:
Exclude:
- 'spec/requests/api/v3/**/*.rb'
+# require_dependency is an obsolete method for Rails applications running in Zeitwerk mode.
+Rails/RequireDependency:
+ Enabled: true
+
# For feature specs, we tend to have longer specs that cover a larger part of the functionality.
# This is done for multiple reasons:
# * performance, as setting up integration tests is costly