beautifier/js-beautify
Add option to run js-beautify as check with fail on change
Aberta
#741 aberto em 20 de jul. de 2015
good first issuetype: enhancement
Métricas do repositório
- Stars
- (8.342 estrelas)
- Métricas de merge de PR
- (Mesclagem média 51d 1h) (16 fundiu PRs em 30d)
Description
In order to run js-beautify as a non-intrusive pre-commit hook in git (or any other place where you wish to check that the code is beautified, but not actually change it), it would help immensely to have an option not to actually save the beautified version of a file anywhere, but to just have js-beautify fail with a non-zero exit code and some reasonable message.