summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-08 18:08:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-08 18:08:30 +0000
commit54943f1e68bd4e1951bf3d6c438acab8d783fc31 (patch)
tree7528e59c2fd305422f64c44c124ed2cda35b6cd2 /.rubocop.yml
parent8a7e48133fa53ea53107eafb4e71fbe72545588e (diff)
downloadgitlab-ce-54943f1e68bd4e1951bf3d6c438acab8d783fc31.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 8113b7d6a7b..beb4b0afd87 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -53,6 +53,16 @@ AllCops:
NewCops: disable
SuggestExtensions: false
+Rails:
+ Exclude:
+ # User defined excludes on top (department) level don't cancel default
+ # includes set by child cops. Directories below are not affected (tested
+ # manually). Watch https://github.com/rubocop/rubocop/issues/11148 to
+ # know when this comment can be removed.
+ - 'danger/**/*'
+ - 'tooling/danger/**/*'
+ - 'rubocop/**/*'
+
RSpec:
Language:
Includes:
@@ -272,10 +282,6 @@ Rails/FindBy:
- 'spec/**/*.rb'
- 'ee/spec/**/*.rb'
-Rails/IndexBy:
- Exclude:
- - 'tooling/danger/**/*.rb'
-
Rails/InverseOf:
Include:
- app/models/**/*.rb