Run RuboCop testing in pipelines and commit hooks
What does this MR do and why?
To keep Ruby code quality high, we should run RuboCop on MRs in this project. We've worked to remove lots of violations, so now we can turn RuboCop on for Git hooks and CI/CD pipelines.
Screenshots, screen recordings, or links to review app
- RuboCop test: https://gitlab.com/gitlab-org/gitlab-docs/-/jobs/3969853469.
-
compile_dev
job https://gitlab.com/gitlab-org/gitlab-docs/-/jobs/3969853456, which uses the changed function.
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. -
Check out this branch. -
Run bundle exec rake clone_repositories
. (probably in a test directory).
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