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-10-19 15:57:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-19 15:57:54 +0300
commit419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch)
tree1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /.rubocop.yml
parent1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff)
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml33
1 files changed, 31 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index f42d7c7b076..544ef66fba6 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -16,6 +16,9 @@ inherit_from:
<% if RUBY_VERSION[/^\d+\.\d+/, 0] == '3.1' %>
- ./rubocop/rubocop-ruby31.yml
<% end %>
+ <% if RUBY_VERSION[/^\d+\.\d+/, 0] == '3.2' %>
+ - ./rubocop/rubocop-ruby32.yml
+ <% end %>
- ./rubocop/rubocop-migrations.yml
- ./rubocop/rubocop-usage-data.yml
- ./rubocop/rubocop-code_reuse.yml
@@ -49,6 +52,8 @@ AllCops:
- 'shared/packages/**/*'
- '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`
+ # projects_controller.rb is used for testing LLM response and is very sensitive to whitespaces.
+ - 'ee/spec/fixtures/llm/projects_controller.rb'
# Adding this specifically for a large revert: !118368
<% File.readlines('.rubocop_revert_ignores.txt').map(&:chomp).each do |f| %>
- '<%= f %>'
@@ -117,6 +122,12 @@ Lint/EmptyFile:
- 'ee/db/embedding/seeds.rb'
- 'ee/db/geo/seeds.rb'
+# This file has a lot of these, and how we name classes here is essential for how we
+# implement migration versions
+Naming/ClassAndModuleCamelCase:
+ Exclude:
+ - 'lib/gitlab/database/migration.rb'
+
# This cop checks whether some constant value isn't a
# mutable literal (e.g. array or hash).
Style/MutableConstant:
@@ -455,6 +466,12 @@ Migration/BatchMigrationsPostOnly:
- 'db/migrate/*.rb'
- 'db/post_migrate/*.rb'
+Migration/UnfinishedDependencies:
+ Enabled: true
+ Include:
+ - 'db/migrate/*.rb'
+ - 'db/post_migrate/*.rb'
+
BackgroundMigration/FeatureCategory:
Enabled: true
Include:
@@ -466,6 +483,14 @@ BackgroundMigration/MissingDictionaryFile:
Include:
- 'db/post_migrate/*.rb'
+# See https://gitlab.com/groups/gitlab-org/-/epics/7374
+Gitlab/AvoidGitlabInstanceChecks:
+ Enabled: true
+ Exclude:
+ - 'db/migrate/*.rb'
+ - 'db/post_migrate/*.rb'
+ - 'ee/db/fixtures/**/*'
+
# See https://gitlab.com/gitlab-org/gitlab/-/issues/373194
Gitlab/RSpec/AvoidSetup:
Enabled: true
@@ -546,7 +571,7 @@ RSpec/FactoriesInMigrationSpecs:
- 'spec/lib/ee/gitlab/background_migration/**/*.rb'
- 'ee/spec/lib/ee/gitlab/background_migration/**/*.rb'
-RSpec/MissingFeatureCategory:
+RSpec/FeatureCategory:
Enabled: true
Exclude:
- 'qa/**/*.rb'
@@ -950,6 +975,11 @@ Style/ClassAndModuleChildren:
Fips/OpenSSL:
Enabled: false
+Gemfile/MissingFeatureCategory:
+ Enabled: true
+ Include:
+ - 'Gemfile'
+
Gemspec/AvoidExecutingGit:
Enabled: false
@@ -982,7 +1012,6 @@ Cop/SidekiqApiUsage:
- 'db/post_migrate/**/*'
- 'lib/gitlab/sidekiq_middleware/**/*'
- 'lib/gitlab/background_migration/**/*'
- - 'lib/gitlab/hashed_storage/migrator.rb'
- 'lib/api/sidekiq_metrics.rb'
- 'lib/gitlab/sidekiq_config.rb'
- 'lib/gitlab/sidekiq_queue.rb'