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 run in checking mode #26

Open
Kernald opened this issue Sep 19, 2021 · 1 comment
Open

Ability to run in checking mode #26

Kernald opened this issue Sep 19, 2021 · 1 comment

Comments

@Kernald
Copy link

Kernald commented Sep 19, 2021

It would be nice to be able to run textpbfmt on files in CI to check that they're properly formatted. google-java-format exposes this use-case through two options for example:

  --dry-run, -n
    Prints the paths of the files whose contents would change if the formatter were run normally.
  --set-exit-if-changed
    Return exit code 1 if there are any formatting changes.
@kssilveira
Copy link
Member

hi, I agree.

One workaround would be to write the output to a different file and then do a diff.

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

2 participants