Commit 29faa41c authored by Peter Leitzen's avatar Peter Leitzen

Merge branch '239356-fix-Lint/SelfAssignment' into 'master'

Fix Link/SelfAssignment offense

See merge request gitlab-org/gitlab!83581
parents dae1bf72 9155e2e9
...@@ -107,11 +107,6 @@ Lint/MixedRegexpCaptureTypes: ...@@ -107,11 +107,6 @@ Lint/MixedRegexpCaptureTypes:
Lint/RedundantCopDisableDirective: Lint/RedundantCopDisableDirective:
Enabled: false Enabled: false
# Offense count: 1
Lint/SelfAssignment:
Exclude:
- 'spec/lib/gitlab/search_context/builder_spec.rb'
# Offense count: 3 # Offense count: 3
Lint/StructNewOverride: Lint/StructNewOverride:
Exclude: Exclude:
......
...@@ -43,7 +43,6 @@ RSpec.describe Gitlab::SearchContext::Builder, type: :controller do ...@@ -43,7 +43,6 @@ RSpec.describe Gitlab::SearchContext::Builder, type: :controller do
def be_search_context(project: nil, group: nil, snippets: [], ref: nil) def be_search_context(project: nil, group: nil, snippets: [], ref: nil)
group = project ? project.group : group group = project ? project.group : group
snippets.compact! snippets.compact!
ref = ref
have_attributes( have_attributes(
project: project, project: project,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment