This PR makes vscode-rubocop supports safeAutocorrect option controls the safety of autocorrections. By default, it is enabled to perform safe autocorrections. If you disable it, unsafe autocorrections will also be performed, you can disable it here:
Or, in settings.json:
"rubocop.safeAutocorrect": false,
This option requires RuboCop 1.54+ because initializationOptions.safeAutocorrect param was introduced in the RuboCop version.
Follow up https://docs.rubocop.org/rubocop/1.54/usage/lsp.html#autocorrection.
This PR makes vscode-rubocop supports
safeAutocorrect
option controls the safety of autocorrections. By default, it is enabled to perform safe autocorrections. If you disable it, unsafe autocorrections will also be performed, you can disable it here:Or, in
settings.json
:This option requires RuboCop 1.54+ because
initializationOptions.safeAutocorrect
param was introduced in the RuboCop version.