summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 00:09:21 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 00:09:21 +0000
commitce2a803dc413f289352deecbf2cfd32896c8b2ef (patch)
treea19f57942ed8d497298afb416fd48dcc9e68f5be /rubocop
parentcfaf1cca4403b826af2286b1ab0a69ad01c58738 (diff)
downloadgitlab-ce-ce2a803dc413f289352deecbf2cfd32896c8b2ef.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/rubocop.rb67
1 files changed, 4 insertions, 63 deletions
diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb
index 1c314976b4e..08e09747ae2 100644
--- a/rubocop/rubocop.rb
+++ b/rubocop/rubocop.rb
@@ -1,63 +1,4 @@
-require_relative 'cop/gitlab/const_get_inherit_false'
-require_relative 'cop/gitlab/module_with_instance_variables'
-require_relative 'cop/gitlab/predicate_memoization'
-require_relative 'cop/gitlab/httparty'
-require_relative 'cop/gitlab/finder_with_find_by'
-require_relative 'cop/gitlab/union'
-require_relative 'cop/gitlab/rails_logger'
-require_relative 'cop/gitlab/keys-first-and-values-first'
-require_relative 'cop/include_sidekiq_worker'
-require_relative 'cop/safe_params'
-require_relative 'cop/active_record_association_reload'
-require_relative 'cop/avoid_return_from_blocks'
-require_relative 'cop/avoid_break_from_strong_memoize'
-require_relative 'cop/avoid_route_redirect_leading_slash'
-require_relative 'cop/line_break_around_conditional_block'
-require_relative 'cop/prefer_class_methods_over_module'
-require_relative 'cop/put_project_routes_under_scope'
-require_relative 'cop/put_group_routes_under_scope'
-require_relative 'cop/migration/add_column'
-require_relative 'cop/migration/add_column_with_default'
-require_relative 'cop/migration/add_concurrent_foreign_key'
-require_relative 'cop/migration/add_concurrent_index'
-require_relative 'cop/migration/add_index'
-require_relative 'cop/migration/add_limit_to_string_columns'
-require_relative 'cop/migration/add_reference'
-require_relative 'cop/migration/add_timestamps'
-require_relative 'cop/migration/datetime'
-require_relative 'cop/migration/hash_index'
-require_relative 'cop/migration/remove_column'
-require_relative 'cop/migration/remove_concurrent_index'
-require_relative 'cop/migration/remove_index'
-require_relative 'cop/migration/reversible_add_column_with_default'
-require_relative 'cop/migration/safer_boolean_column'
-require_relative 'cop/migration/timestamps'
-require_relative 'cop/migration/update_column_in_batches'
-require_relative 'cop/migration/update_large_table'
-require_relative 'cop/project_path_helper'
-require_relative 'cop/rspec/any_instance_of'
-require_relative 'cop/rspec/be_success_matcher'
-require_relative 'cop/rspec/env_assignment'
-require_relative 'cop/rspec/factories_in_migration_specs'
-require_relative 'cop/rspec/top_level_describe_path'
-require_relative 'cop/rspec/have_gitlab_http_status'
-require_relative 'cop/qa/element_with_pattern'
-require_relative 'cop/qa/ambiguous_page_object_name'
-require_relative 'cop/sidekiq_options_queue'
-require_relative 'cop/scalability/file_uploads'
-require_relative 'cop/scalability/bulk_perform_with_context'
-require_relative 'cop/scalability/cron_worker_context'
-require_relative 'cop/destroy_all'
-require_relative 'cop/ruby_interpolation_in_translation'
-require_relative 'code_reuse_helpers'
-require_relative 'cop/code_reuse/finder'
-require_relative 'cop/code_reuse/service_class'
-require_relative 'cop/code_reuse/presenter'
-require_relative 'cop/code_reuse/serializer'
-require_relative 'cop/code_reuse/active_record'
-require_relative 'cop/code_reuse/worker'
-require_relative 'cop/group_public_or_visible_to_user'
-require_relative 'cop/inject_enterprise_edition_module'
-require_relative 'cop/graphql/authorize_types'
-require_relative 'cop/graphql/descriptions'
-require_relative 'cop/ignored_columns'
+# frozen_string_literal: true
+
+# Auto-require all cops under `rubocop/cop/**/*.rb`
+Dir[File.join(__dir__, 'cop', '**', '*.rb')].each(&method(:require))