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
I would like to make webhint exit with a non-zero exit code only when either at least one hint has the severity "error" or webhint has a failure condition so it cannot run all tests.
The icing would be to set up a minimum severity to trigger a non-zero exit code, eg warning.
What scenarios will this solve?
In a CI I don't have to disable low severity hints completely to have a CI step pass or make the step pass regardless of the results of the webhint's run.
The text was updated successfully, but these errors were encountered:
I'm looking at the code and by default the CLI should be exiting with non-zero when there are at least 1 error. What is the configuration that you are using? Maybe we are overriding it in there?
I think you can do what you want by using the severityThreshold property in your .hintrc. I'm not sure why it's not documented in the website though (probably my bad as I was the one implementing that feature 😓)
🚀 Feature request
Description
I would like to make webhint exit with a non-zero exit code only when either at least one hint has the severity "error" or webhint has a failure condition so it cannot run all tests.
The icing would be to set up a minimum severity to trigger a non-zero exit code, eg warning.
What scenarios will this solve?
In a CI I don't have to disable low severity hints completely to have a CI step pass or make the step pass regardless of the results of the webhint's run.
The text was updated successfully, but these errors were encountered: