Skip to content

Conversation

@Earlopain
Copy link
Contributor

Motivation

RuboCop 1.80.1 contains a fix for why this was broken and subsequently disabled, so it should be safe to enable this again.
Revert: #3672
Fix: rubocop/rubocop#14478

Implementation

Check the version and only reuse if it is known to be working.

Automated Tests

None, rubocop contains the tests

Manual Tests

Confirmed that on older versions the prism result is not being set. Also checked that the original errors doesn't happen anymore. As far as I can tell, that is the case. Specifically, the bug triggered (but not exclusivly so) when def was indented further than the corresponding end keyword and formatting happened.

@Earlopain Earlopain requested a review from a team as a code owner August 27, 2025 09:53
@graphite-app
Copy link

graphite-app bot commented Aug 27, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@Earlopain Earlopain changed the title Reuse the prism resutl again Reuse the prism result again Aug 27, 2025
RuboCop 1.80.1 contains a fix for why this was broken,
so it should be safe to enable this again.
Revert: Shopify#3672
Fix: rubocop/rubocop#14478
@vinistock vinistock added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Aug 28, 2025
Copy link
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Really excited to see this land again

@vinistock vinistock merged commit 8cbd8f8 into Shopify:main Aug 28, 2025
22 of 23 checks passed
vinistock added a commit that referenced this pull request Nov 18, 2025
vinistock added a commit that referenced this pull request Nov 18, 2025
Revert "Reuse the prism result again (#3729)"

This reverts commit 8cbd8f8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request server This pull request should be included in the server gem's release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants