rubocop / vscode-rubocop

The official VS Code extension for the RuboCop linter and code formatter.
https://marketplace.visualstudio.com/items?itemName=rubocop.vscode-rubocop
Other
51 stars 2 forks source link

Support `rubocop.formatAutocorrectsAll` command #5

Closed koic closed 1 year ago

koic commented 1 year ago

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.