You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's simple to run jsinspect on your library source as part of a build process. It will exit with an error code of 0 when no matches are found, resulting in a passing step, and a positive error code corresponding to its failure. For example, with Travis CI, you could add the following entries to your .travis.yml:
Notice the "Exist status 1". That allows the error to be detected by CI like travis so you can have builds pass/fail based on the result. :)
@danielstjules thanks for the quick response! What do you think about a --noerror flag, to make npm script use a bit more pleasant? I could try to PR if you're ok with the idea
When I run
$ jsinspect <path>
directly from the command line, it works as expected. However when I run it as an npm script ($ npm run jsinspect
)and matches are found, error is thrown:
The text was updated successfully, but these errors were encountered: