Skip to content

GitLab Housekeeper keep for fixing autocorrectable rubocop rules

Dylan Griffith requested to merge gitlab-housekeeper-generic-rubocop-fixer into master

What does this MR do and why?

GitLab Housekeeper keep for fixing autocorrectable rubocop rules

This is an initial implementation of a Keep which looks through all our existing exclusions in .rubocop_todo/ and finds autocorrectable ones.

It then breaks down the list of Exclude into small chunks and fixes a small number of them at a time.

You can see some example MRs it generated at:

  1. Fix 1 rubocop violations for Gemspec/Deprecated... (!144559)
  2. Fix 20 rubocop violations for Graphql/Descriptions (!144560)
  3. Fix 1 rubocop violations for GraphQL/FieldDefin... (!144561)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dylan Griffith

Merge request reports