Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor RuboCop requests with separate runners #183

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

vinistock
Copy link
Member

Motivation

Closes #136

This is basically another attempt at the same refactor.

Implementation

In this attempt, I have separated two singleton RuboCop runners - one for formatting and one for diagnostics. The requests now inherit from BaseRequest, like all others.

This structure will allow us to check for the presence of RuboCop in the application and then decide whether to have diagnostics and formatting - which also enables falling back to SyntaxTree formatting.

@vinistock vinistock requested a review from a team July 4, 2022 19:32
@vinistock vinistock self-assigned this Jul 4, 2022
Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@vinistock vinistock merged commit d525f7c into main Jul 5, 2022
@vinistock vinistock deleted the vs/refactor_rubocop_requests branch July 5, 2022 15:37
@shopify-shipit shopify-shipit bot temporarily deployed to production July 7, 2022 19:06 Inactive
@shopify-shipit shopify-shipit bot temporarily deployed to 0-2-stable July 27, 2022 13:55 Inactive
andyw8 pushed a commit to andyw8/ruby-lsp that referenced this pull request Mar 2, 2024
…sbuild-0.14.54

Bump esbuild from 0.14.51 to 0.14.54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants