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 · 4 comments · May be fixed by #285
Open

Ability to ignore the format command exit code #183

languitar opened this issue Nov 7, 2021 · 4 comments · May be fixed by #285

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).

@sirreal
Copy link

sirreal commented Nov 5, 2024

There's a lint-ignore-exit-code configuration.

Implementing similar configuration for formatting seems straightforward.

@sirreal
Copy link

sirreal commented Nov 5, 2024

I created #285 to address this.

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

Successfully merging a pull request may close this issue.

4 participants