Skip to content

RuboCop: Fix infinite loop in autocorrection in Graphql/Descriptions

What does this MR do and why?

This MR aims to resolve issue faulty auto-correction in Graphql/Descriptions.

Screenshots or screen recordings

Not applicable

How to set up and validate locally

Reveal exceptions locally via environment variable REVEAL_RUBOCOP_TODO=1.

REVEAL_RUBOCOP_TODO=1 rubocop --only Graphql/Descriptions --autocorrect

MR acceptance checklist

  • Disable autocorrection (currently done via AutoCorrect: false; In any case we need to add specs to cover these edge cases (maintenancetest-gap)

    OR

  • Autocorrect each check

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #383721 (closed)

Edited by Ashvith

Merge request reports