Add possibility to override rubocop config locally

This commit is contained in:
Christophe Bliard
2023-07-04 09:23:11 +02:00
parent d418b41d46
commit b7d0b9ff81
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -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
+5
View File
@@ -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