aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorPaweł Gościcki <pawel.goscicki@gmail.com>2023-12-11 16:45:25 +0100
committerGitHub <noreply@github.com>2023-12-11 07:45:25 -0800
commit0ec6edd67689e8df6726b83333106bcec13c36d4 (patch)
treec2733445bd131366a148619d2466bb5f7284cea9 /lua
parentfb9b0500270ba05b89cc27cd8b7762443bcfae22 (diff)
fix(rubocop): pass --server for faster execution (#246)
This ensures a much quicker execution on 2nd and any subsequent run. Otherwise there's always a 1-3 seconds delay before formatting is being applied (as rubocop is not that quick). From rubocop's documentation: ``` --server If a server process has not been started yet, start the server process and execute inspection with server. ```
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/rubocop.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/conform/formatters/rubocop.lua b/lua/conform/formatters/rubocop.lua
index 7dfa717..c8e027c 100644
--- a/lua/conform/formatters/rubocop.lua
+++ b/lua/conform/formatters/rubocop.lua
@@ -6,6 +6,7 @@ return {
},
command = "rubocop",
args = {
+ "--server",
"-a",
"-f",
"quiet",