Generate RuboCop todos periodically
What does this MR do and why?
This change adds a job to regenerate RuboCop todo files in a scheduled pipeline. As code evolves, some RuboCop offenses are automatically fixed. Regenerating todos prevents reintroduction of these offenses.
The new job uses the GenerateRubocopTodos keep and requires
HOUSEKEEPER_GITLAB_API_TOKEN
in the project CI/CD variables.
We also need to set the AUTO_GENERATE_RUBOCOP_TODOS
variable to true when creating the pipeline schedule.
Sample merge request created
gitlab-org/gitlab!168223 (merged).
Related to gitlab-org/gitlab#468897 (closed)
Edited by Abdul Wadood