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-07-19 17:16:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 17:16:28 +0300
commite4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch)
tree2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /.rubocop.yml
parentffda4e7bcac36987f936b4ba515995a6698698f0 (diff)
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml42
1 files changed, 21 insertions, 21 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 95240342be3..d52c1784aae 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -40,6 +40,7 @@ AllCops:
TargetRubyVersion: <%= RUBY_VERSION[/^\d+\.\d+/, 0] %>
TargetRailsVersion: 6.0
Exclude:
+ - 'gems/**/*'
- 'vendor/**/*'
- 'node_modules/**/*'
- 'db/fixtures/**/*'
@@ -273,6 +274,11 @@ Naming/FileName:
- XSS
- GRPC
+# Check for the use of before with let_it_be when using "add_role" methods
+# e.g. add_guest, add_reporter, add_developer
+RSpec/BeforeAllRoleAssignment:
+ Enabled: true
+
Rails/ApplicationRecord:
Enabled: true
Exclude:
@@ -389,7 +395,6 @@ Gitlab/Json:
Exclude:
- 'qa/**/*'
- 'scripts/**/*'
- - 'tooling/rspec_flaky/**/*'
- 'lib/quality/**/*'
- 'tooling/danger/**/*'
@@ -484,11 +489,6 @@ Cop/InjectEnterpriseEditionModule:
Style/ReturnNil:
Enabled: true
-# It isn't always safe to replace `=~` with `.match?`, especially when there are
-# nil values on the left hand side
-Performance/RegexpMatch:
- Enabled: false
-
Cop/ActiveRecordAssociationReload:
Enabled: true
Exclude:
@@ -546,6 +546,7 @@ RSpec/MissingFeatureCategory:
Enabled: true
Exclude:
- 'qa/**/*.rb'
+ - 'gems/**/*.rb'
RSpec/FactoryBot/AvoidCreate:
Enabled: true
@@ -620,15 +621,6 @@ Graphql/AuthorizeTypes:
- 'spec/**/*.rb'
- 'ee/spec/**/*.rb'
-Graphql/GIDExpectedType:
- Enabled: true
- Include:
- - 'app/graphql/**/*'
- - 'ee/app/graphql/**/*'
- Exclude:
- - 'spec/**/*.rb'
- - 'ee/spec/**/*.rb'
-
Graphql/IDType:
Enabled: true
Include:
@@ -675,7 +667,6 @@ RSpec/EnvMocking:
- 'ee/spec/**/fast_spec_helper.rb'
- 'spec/**/spec_helper.rb'
- 'ee/spec/**/spec_helper.rb'
- - 'spec/support/helpers/stub_env.rb'
RSpec/BeSuccessMatcher:
Enabled: true
@@ -926,6 +917,13 @@ Performance/ActiveRecordSubtransactionMethods:
Migration/BackgroundMigrationBaseClass:
Enabled: false
+BackgroundMigration/AvoidSilentRescueExceptions:
+ Enabled: false
+
+Migration/AvoidFinalizeBackgroundMigration:
+ Include:
+ - 'db/post_migrate/*.rb'
+
Style/ClassAndModuleChildren:
Enabled: true
@@ -971,11 +969,6 @@ Cop/SidekiqApiUsage:
- 'config/initializers/sidekiq.rb'
- 'config/initializers/forbid_sidekiq_in_transactions.rb'
-Rake/Require:
- Include:
- - '{,ee/,jh/}lib/**/*.rake'
- - 'qa/tasks/**/*.rake'
-
Cop/FeatureFlagUsage:
Include:
- 'lib/gitlab/redis/**/*.rb'
@@ -1022,3 +1015,10 @@ RSpec/FactoryBot/LocalStaticAssignment:
Rails/TransactionExitStatement:
Enabled: true
+
+Search/AvoidCheckingFinishedOnDeprecatedMigrations:
+ Include:
+ - 'ee/app/models/**/*.rb'
+ - 'ee/lib/elastic/**/*.rb'
+ - 'ee/lib/gitlab/elastic/**/*.rb'
+ - 'ee/spec/support/helpers/elasticsearch_helpers.rb'