Fix RuboCop violations for task helpers
What does this MR do and why?
Fix RuboCop violations for task helpers so we can eventually turn on routine RuboCop testing.
Fixes the following violations:
-
Style/RedundantBegin
: https://docs.rubocop.org/rubocop/cops_style.html#styleredundantbegin -
Lint/NoReturnInBeginEndBlocks
: https://docs.rubocop.org/rubocop/cops_lint.html#lintnoreturninbeginendblocks
The updated:
-
products
function is used inclone_repositories
Rake task, which is called as part ofbundle exec rake default
in thecompile_dev
job. -
stable_branch_name
function is used in theretrieve_branch
function, which is also used in theclone_repositories
Rake task, which is called as part ofbundle exec rake default
in thecompile_dev
job.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md.
Merge request acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Evan Read