From 9155e2e9216f04694febe2b012f5528a1c622035 Mon Sep 17 00:00:00 2001 From: Vitali Tatarintev Date: Thu, 24 Mar 2022 09:40:24 +0100 Subject: [PATCH] Fix Link/SelfAssignment offense --- .rubocop_todo.yml | 5 ----- spec/lib/gitlab/search_context/builder_spec.rb | 1 - 2 files changed, 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0a946b9d627dba..8074162c89a63c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -107,11 +107,6 @@ Lint/MixedRegexpCaptureTypes: Lint/RedundantCopDisableDirective: Enabled: false -# Offense count: 1 -Lint/SelfAssignment: - Exclude: - - 'spec/lib/gitlab/search_context/builder_spec.rb' - # Offense count: 3 Lint/StructNewOverride: Exclude: diff --git a/spec/lib/gitlab/search_context/builder_spec.rb b/spec/lib/gitlab/search_context/builder_spec.rb index 079477115bbd11..a09115f3f21e00 100644 --- a/spec/lib/gitlab/search_context/builder_spec.rb +++ b/spec/lib/gitlab/search_context/builder_spec.rb @@ -43,7 +43,6 @@ def expected_search_url(project, group) def be_search_context(project: nil, group: nil, snippets: [], ref: nil) group = project ? project.group : group snippets.compact! - ref = ref have_attributes( project: project, -- GitLab