mattn / efm-langserver

General purpose Language Server
MIT License
1.34k stars 61 forks source link

Ability to ignore the format command exit code #183

Open languitar opened 2 years ago

languitar commented 2 years ago

ktlint for kotlin can do auto-formatting. But after formatting it always also performs linting. If errors remain after formatting, the exit code will be != 0. I would need an option to ignore this non-zero exit code for formatting to make ktlint formatting functional.

22mahmoud commented 3 months ago

I have the same case scenario with phpcbf, I used || true to ignore error code

format-command: './vendor/bin/phpcbf - || true'
glitch-cake commented 3 months ago

The efmls-configs for standard js has the same issue (js_standard.lua).