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>2021-07-20 12:55:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 12:55:51 +0300
commite8d2c2579383897a1dd7f9debd359abe8ae8373d (patch)
treec42be41678c2586d49a75cabce89322082698334 /.rubocop.yml
parentfc845b37ec3a90aaa719975f607740c22ba6a113 (diff)
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index a26e9ab986b..657385ba66d 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -123,6 +123,7 @@ Naming/FileName:
- 'ee/lib/generators/**/*'
- 'qa/qa/scenario/test/integration/ldap_no_tls.rb'
- 'qa/qa/scenario/test/integration/ldap_tls.rb'
+ - 'qa/tasks/*'
IgnoreExecutableScripts: true
AllowedAcronyms:
@@ -280,6 +281,22 @@ GitlabSecurity/PublicSend:
- 'ee/lib/**/*.rake'
- 'ee/spec/**/*'
+Database/MultipleDatabases:
+ Enabled: true
+ Include:
+ - 'app/**/*.rb'
+ - 'ee/app/**/*.rb'
+ - 'lib/**/*.rb'
+ - 'ee/lib/**/*.rb'
+ - 'spec/**/*.rb'
+ - 'ee/spec/**/*.rb'
+ Exclude:
+ - 'ee/db/**/*.rb'
+ - 'spec/migrations/**/*.rb'
+ - 'lib/gitlab/background_migration/**/*.rb'
+ - 'spec/lib/gitlab/background_migration/**/*.rb'
+ - 'spec/lib/gitlab/database/**/*.rb'
+
Gitlab/DuplicateSpecLocation:
Enabled: true
@@ -607,6 +624,12 @@ Migration/CreateTableWithForeignKeys:
Exclude:
- !ruby/regexp /\Adb\/(?:post_)?migrate\/(?:201[0-9]\d+|20200[0-8][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])_.+\.rb\z/
+Migration/PreventIndexCreation:
+ Exclude:
+ - !ruby/regexp /\Adb\/(post_)?migrate\/201.*\.rb\z/
+ - !ruby/regexp /\Adb\/(post_)?migrate\/2020.*\.rb\z/
+ - !ruby/regexp /\Adb\/(post_)?migrate\/20210[1-6].*\.rb\z/
+
Gitlab/RailsLogger:
Exclude:
- 'spec/**/*.rb'