Skip to content

Fix Rake/Require offence in cleanup rake task

What does this MR do and why?

Contributes to: #391459 (closed)

This MR moves all requires into task definition of cleanup (lib/tasks/gitlab/cleanup.rake) rake task.

image

Screenshots or screen recordings

image

How to set up and validate locally

rake gitlab:cleanup:block_removed_ldap_users
rake gitlab:cleanup:moved
rake gitlab:cleanup:orphan_job_artifact_files
rake gitlab:cleanup:orphan_lfs_file_references
rake gitlab:cleanup:orphan_lfs_files
rake gitlab:cleanup:project_uploads
rake gitlab:cleanup:remote_upload_files
rake gitlab:cleanup:sessions:active_sessions_lookup_keys
bundle exec rubocop lib/tasks/gitlab/cleanup.rake
Inspecting 1 file
.

1 file inspected, no offenses detected

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 Pushpa Raj Badu

Merge request reports

Loading