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>2023-07-19 18:09:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 18:09:55 +0300
commit25ed642226db28550270b850280462dad124fd61 (patch)
treee2f64fb49d0a56cf4f10fad32b806a981ee55700 /rubocop
parent3ca9a972f6bc4060a58703398df74d87703916cf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/search/avoid_checking_finished_on_deprecated_migrations.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/rubocop/cop/search/avoid_checking_finished_on_deprecated_migrations.rb b/rubocop/cop/search/avoid_checking_finished_on_deprecated_migrations.rb
index 0a6813d4bba..7fd7db25128 100644
--- a/rubocop/cop/search/avoid_checking_finished_on_deprecated_migrations.rb
+++ b/rubocop/cop/search/avoid_checking_finished_on_deprecated_migrations.rb
@@ -20,11 +20,15 @@ module RuboCop
class AvoidCheckingFinishedOnDeprecatedMigrations < RuboCop::Cop::Base
MSG = 'Migration is deprecated and can not be used with `migration_has_finished?`.'
+ DEPRECATED_MIGRATIONS = [
+ :backfill_project_permissions_in_blobs_using_permutations,
+ :backfill_archived_on_issues
+ ].freeze
def_node_matcher :deprecated_migration?, <<~PATTERN
(send
(const (const {nil? cbase} :Elastic) :DataMigrationService) :migration_has_finished?
- (sym :backfill_project_permissions_in_blobs_using_permutations))
+ (sym {#{DEPRECATED_MIGRATIONS.map { |m| ":#{m}" }.join(' ')}}))
PATTERN
RESTRICT_ON_SEND = %i[migration_has_finished?].freeze