Skip to content

RuboCop: Disable Layout/HashAlignment

Peter Leitzen requested to merge pl-rubocop-disable-layout-hashalignment into master

What does this MR do and why?

This MR disables 👮 rule Layout/HashAlignment because it causes warnings like https://gitlab.com/gitlab-org/gitlab/-/jobs/3515923572 and generating TODOs has no effect (see !107679 (merged)).

Note that this rule only has 2 offenses (one in todo YAML and the other is spec/serializers/environment_serializer_spec.rb which causes problems) so having this cop disabled seems fair for now.

See #386618 (closed) for more info.

How to verify locally?

unset REVEAL_RUBOCOP_TODO
bundle exec rubocop spec/serializers/environment_serializer_spec.rb
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 Peter Leitzen

Merge request reports