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>2020-11-19 11:27:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-19 11:27:35 +0300
commit7e9c479f7de77702622631cff2628a9c8dcbc627 (patch)
treec8f718a08e110ad7e1894510980d2155a6549197 /rubocop/rubocop-code_reuse.yml
parente852b0ae16db4052c1c567d9efa4facc81146e88 (diff)
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'rubocop/rubocop-code_reuse.yml')
-rw-r--r--rubocop/rubocop-code_reuse.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/rubocop/rubocop-code_reuse.yml b/rubocop/rubocop-code_reuse.yml
new file mode 100644
index 00000000000..64e51c859f4
--- /dev/null
+++ b/rubocop/rubocop-code_reuse.yml
@@ -0,0 +1,41 @@
+# Denies the use of ActiveRecord methods outside of configured
+# excluded directories
+# Directories that allow the use of the denied methods.
+# To start we provide a default configuration that matches
+# a standard Rails app and enable.
+# The default configuration can be overridden by
+# providing your own Exclusion list as follows:
+# CodeReuse/ActiveRecord:
+# Enabled: true
+# Exclude:
+# - app/models/**/*.rb
+# - config/**/*.rb
+# - db/**/*.rb
+# - lib/tasks/**/*.rb
+# - spec/**/*.rb
+# - lib/gitlab/**/*.rb
+CodeReuse/ActiveRecord:
+ Exclude:
+ - app/models/**/*.rb
+ - config/**/*.rb
+ - db/**/*.rb
+ - lib/tasks/**/*.rake
+ - spec/**/*.rb
+ - danger/**/*.rb
+ - lib/backup/**/*.rb
+ - lib/banzai/**/*.rb
+ - lib/gitlab/background_migration/**/*.rb
+ - lib/gitlab/cycle_analytics/**/*.rb
+ - lib/gitlab/database/**/*.rb
+ - lib/gitlab/database_importers/common_metrics/importer.rb
+ - lib/gitlab/import_export/**/*.rb
+ - lib/gitlab/project_authorizations.rb
+ - lib/gitlab/sql/**/*.rb
+ - lib/system_check/**/*.rb
+ - qa/**/*.rb
+ - rubocop/**/*.rb
+ - ee/app/models/**/*.rb
+ - ee/spec/**/*.rb
+ - ee/db/fixtures/**/*.rb
+ - ee/lib/tasks/**/*.rake
+ - ee/lib/ee/gitlab/background_migration/**/*.rb