Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to ignore the format command exit code #183

Open
languitar opened this issue Nov 7, 2021 · 2 comments
Open

Ability to ignore the format command exit code #183

languitar opened this issue Nov 7, 2021 · 2 comments

Comments

@languitar
Copy link

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
Copy link

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

format-command: './vendor/bin/phpcbf - || true'

@glitch-cake
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants