From 5cc251543d87abc6ddd968b9e11334814569ee81 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Tue, 20 Feb 2024 19:48:24 +0900 Subject: [PATCH] modify rubocop option for rubocop versions < 1.30 (#665) --- .../language_server/message/text_document/formatting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solargraph/language_server/message/text_document/formatting.rb b/lib/solargraph/language_server/message/text_document/formatting.rb index dbe927048..77653b546 100644 --- a/lib/solargraph/language_server/message/text_document/formatting.rb +++ b/lib/solargraph/language_server/message/text_document/formatting.rb @@ -54,7 +54,7 @@ def config_for(file_uri) def cli_args file_uri, config file = UriHelpers.uri_to_file(file_uri) args = [ - config['cops'] == 'all' ? '--autocorrect-all' : '--autocorrect', + config['cops'] == 'all' ? '-A' : '-a', '--cache', 'false', '--format', formatter_class(config).name, ]