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-11-14 11:41:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-14 11:41:52 +0300
commit585826cb22ecea5998a2c2a4675735c94bdeedac (patch)
tree5b05f0b30d33cef48963609e8a18a4dff260eab3 /.rubocop.yml
parentdf221d036e5d0c6c0ee4d55b9c97f481ee05dee8 (diff)
Add latest changes from gitlab-org/gitlab@16-6-stable-eev16.6.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml23
1 files changed, 21 insertions, 2 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 544ef66fba6..adc796f1332 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -153,6 +153,12 @@ Style/FrozenStringLiteralComment:
Style/SpecialGlobalVars:
EnforcedStyle: use_builtin_english_names
+Style/SignalException:
+ Exclude:
+ # Danger defines its own `fail` method
+ - '**/*/Dangerfile'
+ - 'tooling/danger/**/*.rb'
+
RSpec/FilePath:
Exclude:
- 'qa/**/*'
@@ -310,6 +316,11 @@ Rails/ActiveRecordCallbacksOrder:
- app/models/**/*.rb
- ee/app/models/**/*.rb
+# We disable this since network latency isn't an issue and schema changes execute in a few milliseconds.
+# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/136251#note_1638949892.
+Rails/BulkChangeTable:
+ Enabled: false
+
Cop/DefaultScope:
Enabled: true
@@ -477,9 +488,9 @@ BackgroundMigration/FeatureCategory:
Include:
- 'lib/gitlab/background_migration/*.rb'
-BackgroundMigration/MissingDictionaryFile:
+BackgroundMigration/DictionaryFile:
Enabled: true
- EnforcedSince: 20230307160251
+ EnforcedSince: 20231018100907
Include:
- 'db/post_migrate/*.rb'
@@ -919,6 +930,9 @@ Cop/UserAdmin:
- 'spec/**/*.rb'
- 'ee/spec/**/*.rb'
+Style/InlineDisableAnnotation:
+ Enabled: true
+
# See https://gitlab.com/gitlab-org/gitlab/-/issues/327495
Style/RegexpLiteral:
Enabled: false
@@ -1083,3 +1097,8 @@ Cop/ExperimentsTestCoverage:
- 'lib/**/*'
- 'ee/app/**/*'
- 'ee/lib/**/*'
+
+RSpec/UselessDynamicDefinition:
+ Exclude:
+ - 'spec/factories/**/*'
+ - 'ee/spec/factories/**/*'