Skip to content

Remove superfluous cop let bindings in RuboCop specs

Peter Leitzen requested to merge pl-rubocop-spec-superfluous-cop-lets into master

What does this MR do and why?

It's already done via RuboCop's :config shared context and fails (see 🔴 https://gitlab.com/gitlab-org/gitlab/-/jobs/4158313819) when upgrade to RuboCop 1.50.2. See !118393.

How to set up and validate locally

# This branch (RuboCop 1.43.0)
bin/rspec spec/rubocop

# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/118399 (RuboCop 1.50.2)
bin/rspec spec/rubocop

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports

Loading