summaryrefslogtreecommitdiff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-03 09:09:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-03 09:09:31 +0000
commit04baa85554ff13bdd4d6f4e6bb24119d17608fee (patch)
tree7cb9c0977e09d97da340f48703d79b2dbd3579a0 /.rubocop.yml
parent42f41de46525ce0065f02ee07c1a79f5669526a0 (diff)
downloadgitlab-ce-04baa85554ff13bdd4d6f4e6bb24119d17608fee.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml15
1 files changed, 7 insertions, 8 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 6b8fb30b961..ee840476c8a 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -329,13 +329,6 @@ RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/**/*.rb'
- 'qa/spec/**/*.rb'
- - 'ee/spec/presenters/security/vulnerable_project_presenter_spec.rb'
- - 'ee/spec/serializers/vulnerable_project_entity_spec.rb'
- - 'ee/spec/services/clusters/applications/check_upgrade_progress_service_spec.rb'
- - 'ee/spec/services/dashboard/projects/list_service_spec.rb'
- - 'ee/spec/services/metrics/dashboard/clone_dashboard_service_spec.rb'
- - 'ee/spec/support/shared_contexts/epic_aggregate_constants.rb'
- - 'ee/spec/workers/elastic_namespace_rollout_worker_spec.rb'
RSpec/EmptyLineAfterHook:
Enabled: false
@@ -387,6 +380,13 @@ Cop/BanCatchThrow:
Performance/ReadlinesEach:
Enabled: true
+Performance/ChainArrayAllocation:
+ Enabled: true
+ Include:
+ - 'lib/gitlab/import_export/**/*'
+ - 'ee/lib/gitlab/import_export/**/*'
+ - 'ee/lib/ee/gitlab/import_export/**/*'
+
# https://gitlab.com/gitlab-org/gitlab/-/issues/212541
RSpec/RepeatedExample:
Exclude:
@@ -400,7 +400,6 @@ RSpec/RepeatedExample:
- 'spec/lib/gitlab/closing_issue_extractor_spec.rb'
- 'spec/lib/gitlab/danger/changelog_spec.rb'
- 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
- - 'spec/models/project_services/chat_message/pipeline_message_spec.rb'
- 'spec/routing/admin_routing_spec.rb'
- 'spec/rubocop/cop/migration/update_large_table_spec.rb'
- 'spec/services/notification_service_spec.rb'