summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-18 09:45:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-18 09:45:46 +0000
commita7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch)
tree7452bd5c3545c2fa67a28aa013835fb4fa071baf /.rubocop.yml
parentee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff)
downloadgitlab-ce-a7b3560714b4d9cc4ab32dffcd1f74a284b93580.tar.gz
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml34
1 files changed, 9 insertions, 25 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 2280fe222ea..8416653d677 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -97,14 +97,8 @@ RSpec/FilePath:
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
- Max: 28
+ Max: 25
AllowSubject: true
- Exclude:
- - 'spec/migrations/**/*.rb'
- - 'spec/lib/gitlab/background_migration/populate_project_snippet_statistics_spec.rb'
- - 'spec/lib/gitlab/background_migration/populate_finding_uuid_for_vulnerability_feedback_spec.rb'
- - 'ee/spec/lib/ee/gitlab/background_migration/populate_uuids_for_security_findings_spec.rb'
- - 'ee/spec/lib/gitlab/background_migration/user_mentions/create_resource_user_mention_spec.rb'
Naming/FileName:
ExpectMatchingDefinition: true
@@ -174,6 +168,7 @@ Naming/FileName:
- GitLab
- JavaScript
- VSCode
+ - JetBrains
# default ones:
- CLI
- DSL
@@ -296,6 +291,12 @@ Gitlab/AvoidUploadedFileFromParams:
- 'spec/**/*'
- 'ee/spec/**/*'
+Gitlab/EventStoreSubscriber:
+ Enabled: true
+ Exclude:
+ - 'spec/**/*'
+ - 'ee/spec/**/*'
+
GitlabSecurity/PublicSend:
Enabled: true
Exclude:
@@ -517,24 +518,6 @@ Graphql/Descriptions:
RSpec/ImplicitSubject:
Enabled: false
-# WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/211580
-RSpec/LeakyConstantDeclaration:
- Enabled: true
- Exclude:
- - 'spec/db/schema_spec.rb'
- - 'spec/lib/feature_spec.rb'
- - 'spec/lib/gitlab/config/entry/simplifiable_spec.rb'
- - 'spec/lib/gitlab/quick_actions/dsl_spec.rb'
- - 'spec/lib/marginalia_spec.rb'
- - 'spec/mailers/notify_spec.rb'
- - 'spec/models/concerns/batch_destroy_dependent_associations_spec.rb'
- - 'spec/models/concerns/bulk_insert_safe_spec.rb'
- - 'spec/models/concerns/bulk_insertable_associations_spec.rb'
- - 'spec/models/concerns/triggerable_hooks_spec.rb'
- - 'spec/models/repository_spec.rb'
- - 'spec/services/clusters/applications/check_installation_progress_service_spec.rb'
- - 'spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb'
-
RSpec/EmptyLineAfterHook:
Enabled: false
@@ -689,6 +672,7 @@ Gitlab/NamespacedClass:
- 'ee/elastic/**/*.rb'
- 'scripts/**/*'
- 'spec/migrations/**/*.rb'
+ - 'app/experiments/**/*_experiment.rb'
Lint/HashCompareByIdentity:
Enabled: true