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:
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'