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

Feature request: allow checking files without modification #388

Open
raphCode opened this issue Dec 22, 2022 · 0 comments
Open

Feature request: allow checking files without modification #388

raphCode opened this issue Dec 22, 2022 · 0 comments

Comments

@raphCode
Copy link

I really like to set up pre-commit hooks of code formatters and such to ensure consistent code styling in my repos.
I don't want automatic changes to my commits to happen, so I usually operate these formatter in "check" mode: They don't perform any changes and report via exit status if the files are formatted correctly. If the check fails, my commit is blocked and I am forced to step in by running the formatter manually or forcing an unchecked commit.

Basically, I would like to see this functionality from bibtex-tidy as well:
With the --check option, no changes are performed and the exit code is zero if the file is already correctly formatted.

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

No branches or pull requests

2 participants