jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.97k stars 515 forks source link

Error Code 2 A.K.A --force #2260

Closed ShadOoW closed 8 years ago

ShadOoW commented 8 years ago

Hello,

JSCS exit with error code 2 when it finds a code style that is not allowed by the configuration file.

First: Why does it exit with error, the main purpose of this programme is to find this style issues, it found one it exit with error? WTF Second: why not at least have a --force flag to force it to exit with 0?

This is a real issue, i've faced when writing an npm script for jscs.

PS: No disrespect intended, just pointing out something that look stupid to me, cheers.

markelog commented 8 years ago

That is API design, you can easily mitigate this, also see https://github.com/jscs-dev/node-jscs/wiki/Exit-codes