summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
commitb76ae638462ab0f673e5915986070518dd3f9ad3 (patch)
treebdab0533383b52873be0ec0eb4d3c66598ff8b91 /.rubocop.yml
parent434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff)
downloadgitlab-ce-b76ae638462ab0f673e5915986070518dd3f9ad3.tar.gz
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 657385ba66d..7b2b8ca70f5 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -37,6 +37,7 @@ AllCops:
- 'file_hooks/**/*'
- 'workhorse/**/*'
- 'spec/support/*.git/**/*' # e.g. spec/support/gitlab-git-test.git
+ - 'db/ci_migrate/*.rb' # since the `db/ci_migrate` is a symlinked to `db/migrate`
CacheRootDirectory: tmp
MaxFilesInCache: 25000
@@ -254,7 +255,6 @@ Gitlab/HTTParty:
Gitlab/Json:
Enabled: true
Exclude:
- - 'db/**/*'
- 'qa/**/*'
- 'scripts/**/*'
- 'tooling/rspec_flaky/**/*'
@@ -442,6 +442,16 @@ Graphql/JSONType:
- 'spec/**/*.rb'
- 'ee/spec/**/*.rb'
+Graphql/OldTypes:
+ Enabled: true
+ Include:
+ - 'app/graphql/**/*'
+ - 'ee/app/graphql/**/*'
+ - 'spec/graphql/**/*'
+ - 'spec/requests/api/graphql/**/*'
+ - 'ee/spec/graphql/**/*'
+ - 'ee/spec/requests/api/graphql/**/*'
+
RSpec/EnvAssignment:
Enable: true
Include:
@@ -693,3 +703,11 @@ RSpec/TopLevelDescribePath:
Exclude:
- 'spec/fixtures/**/*.rb'
- 'ee/spec/fixtures/**/*.rb'
+
+QA/SelectorUsage:
+ Enabled: true
+ Include:
+ - 'spec/**/*.rb'
+ - 'ee/spec/**/*.rb'
+ Exclude:
+ - 'spec/rubocop/**/*_spec.rb'