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 possibility to override rubocop config locally

Christophe Bliardb7d0b9ff8153
diff --git a/.gitignore b/.gitignore
index a23e38ac0c9..248b7f64a54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -134,8 +134,10 @@ structure.sql
/.envrc
/.direnv
-# lefthook.yml user override
+# local user override
lefthook-local.yml
+.rubocop-local.yml
+
frontend/package-lock.json
# Testing and nextcloud infrastructure
diff --git a/.rubocop.yml b/.rubocop.yml
index e883331097b..b93cdc1295a 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -6,6 +6,11 @@ require:
- rubocop-capybara
- rubocop-factory_bot
+<% if File.exist?('.rubocop-local.yml') %>
+inherit_from:
+ - .rubocop-local.yml
+<% end %>
+
inherit_mode:
merge:
# adding files to Exclude should merge with inherited instead of replacing