Skip to content

Commit

Permalink
fix(rubocop): pass --server for faster execution (#246)
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
pjg authored Dec 11, 2023
1 parent fb9b050 commit 0ec6edd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/conform/formatters/rubocop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ return {
},
command = "rubocop",
args = {
"--server",
"-a",
"-f",
"quiet",
Expand Down

0 comments on commit 0ec6edd

Please sign in to comment.