Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 18:09:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 18:09:55 +0300
commit25ed642226db28550270b850280462dad124fd61 (patch)
treee2f64fb49d0a56cf4f10fad32b806a981ee55700 /gems/config
parent3ca9a972f6bc4060a58703398df74d87703916cf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'gems/config')
-rw-r--r--gems/config/rubocop.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/gems/config/rubocop.yml b/gems/config/rubocop.yml
index a97d759b471..32fd3cd8987 100644
--- a/gems/config/rubocop.yml
+++ b/gems/config/rubocop.yml
@@ -1,3 +1,11 @@
+# We need to ignore exclusions defined in parent RuboCop configuration
+# (AllCops/Exclude: 'gems/**/*') if RuboCop cop is run within `gems/...`.
+# See https://gitlab.com/gitlab-org/gitlab/-/issues/417281
+<%
+ relative_path = ENV['PWD'].delete_prefix(File.expand_path('../..'))
+ RuboCop::ConfigLoader.ignore_parent_exclusion = relative_path.start_with?('/gems/')
+%>
+---
inherit_gem:
gitlab-styles:
- rubocop-default.yml