beautifier/js-beautify

Add option to run js-beautify as check with fail on change

Open

#741 aperta il 20 lug 2015

Vedi su GitHub
 (12 commenti) (10 reazioni) (0 assegnatari)JavaScript (1460 fork)batch import
good first issuetype: enhancement

Metriche repository

Star
 (8342 star)
Metriche merge PR
 (Merge medio 51g 1h) (16 PR mergiate in 30 g)

Descrizione

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.

Guida contributor