bibtex-tidy icon indicating copy to clipboard operation
bibtex-tidy copied to clipboard

Feature request: allow checking files without modification

Open raphCode opened this issue 2 years ago • 0 comments

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.

raphCode avatar Dec 22 '22 16:12 raphCode