I wanted to write a Git commit hook that would block me from committing if I had any linting errors, but at present phpnsc binary doesn't spit out a status code to indicate the presence of errors (which linting tools usually do). This makes it emit a status code 1 on error, which allows it to be used nicely in a hook.
I wanted to write a Git commit hook that would block me from committing if I had any linting errors, but at present
phpnsc
binary doesn't spit out a status code to indicate the presence of errors (which linting tools usually do). This makes it emit a status code 1 on error, which allows it to be used nicely in a hook.