summaryrefslogtreecommitdiff
path: root/rubocop/rubocop.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-08-16 14:28:25 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2018-08-16 17:29:33 +0200
commit96ce2da74ee36e88f20cbd7ceaff2ab49f0bb223 (patch)
tree484f41cb9b2013fde409715bad4d00a602e92fb2 /rubocop/rubocop.rb
parent353360ef824e10cb0197733e7b104a6fb53cf9af (diff)
downloadgitlab-ce-96ce2da74ee36e88f20cbd7ceaff2ab49f0bb223.tar.gz
Blacklist the use of "destroy_all"
This method usually has really bad performance implications, as it loads rows into memory and deletes them one by one.
Diffstat (limited to 'rubocop/rubocop.rb')
-rw-r--r--rubocop/rubocop.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb
index a427208cdab..88c9bbf24f4 100644
--- a/rubocop/rubocop.rb
+++ b/rubocop/rubocop.rb
@@ -27,3 +27,4 @@ require_relative 'cop/project_path_helper'
require_relative 'cop/rspec/env_assignment'
require_relative 'cop/rspec/factories_in_migration_specs'
require_relative 'cop/sidekiq_options_queue'
+require_relative 'cop/destroy_all'