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>2021-11-13 12:13:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-13 12:13:02 +0300
commitf8f619856f4437343c81a1fbc1da6c59995fe98d (patch)
treebfcbef1f92b5bb7a34bb097525e0ca2c502072cf /rubocop/cop
parentb662e7d21db991d6f998ce5268ee843f85d2c631 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop/cop')
-rw-r--r--rubocop/cop/qa/duplicate_testcase_link.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/rubocop/cop/qa/duplicate_testcase_link.rb b/rubocop/cop/qa/duplicate_testcase_link.rb
index f30768c7d80..82549707a83 100644
--- a/rubocop/cop/qa/duplicate_testcase_link.rb
+++ b/rubocop/cop/qa/duplicate_testcase_link.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require_relative '../../qa_helpers'
-
module RuboCop
module Cop
module QA
@@ -17,8 +15,6 @@ module RuboCop
# it 'some test', testcase: '(...)/quality/test_cases/1892'
# it 'another test, testcase: '(...)/quality/test_cases/1894'
class DuplicateTestcaseLink < RuboCop::Cop::Cop
- include QAHelpers
-
MESSAGE = "Don't reuse the same testcase link in different tests. Replace one of `%s`."
@testcase_set = Set.new
@@ -34,8 +30,6 @@ module RuboCop
PATTERN
def on_block(node)
- return unless in_qa_file?(node)
-
duplicate_testcase_link(node) do |link|
break unless self.class.duplicate?(link)