Skip to content

RuboCop: Re-enable Layout/HashAlignment

Problem

The 👮 Layout/HashAlignment is incompatible with Layout/ArgumentAlignment (currently disabled due to too many offenses).

This causes https://gitlab.com/gitlab-org/gitlab/-/jobs/3515923572 to warn about silenced offenses. Regenerating TODOs for Layout/HashAlignment had no effect and did not add the file with offenses as a TODO.

In order to get rid of these silenced offenses we've disabled Layout/HashAlignment (only 2 offenses).

Proposed solution

Re-enabled Layout/HashAlignment after investigating what happened.

This weird behavior probably goes away after enabling Layout/ArgumentAlignment 🤞

Edited by Peter Leitzen