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

Support rubocop.formatAutocorrectsAll command #5

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

koic
Copy link
Member

@koic koic commented Aug 5, 2023

This PR supports rubocop.formatAutocorrectsAll command, which requires RuboCop 1.56+.

In addition to the built-in VS Code Formatting API. It triggers the extension to format and autocorrect all the current file listing by running the command "RuboCop: Format All with Autocorrects". This is equivalent to rubocop -A:

autocorrect-all-command

User can use two autocorrect commands depending on the purpose.

@koic koic force-pushed the support_format_autocorrects_all_command branch 6 times, most recently from 82cbac1 to d6d7584 Compare August 12, 2023 06:03
This PR supports `rubocop.formatAutocorrectsAll` command, which requires RuboCop 1.56+.

In addition to the built-in VS Code Formatting API.
It triggers the extension to format and autocorrect all the current file listing by running
the command "RuboCop: Format All with Autocorrects". This is equivalent to `rubocop -A`:

![Autocorrect all command](/docs/autocorrect-all-command.png)

User can use two autocorrect commands depending on the purpose.
@koic koic force-pushed the support_format_autocorrects_all_command branch from d6d7584 to f9e3a32 Compare August 12, 2023 18:18
@koic koic merged commit cf8e289 into master Aug 19, 2023
3 checks passed
@koic koic deleted the support_format_autocorrects_all_command branch August 19, 2023 06:12
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.

None yet

1 participant