New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new method, failAfterWarningOrError. #12257
Add a new method, failAfterWarningOrError. #12257
Conversation
of failAfterError, gulp will effectively consider validator warnings as errors. I've extracted a helper routine to avoid duplicating too much code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM. One thing - could you also update the sample in the readme.
We also should update the dependency to the amp-validator in the package.json. Do you want to do this in this PR, or should we create a separate one?
@sebastianbenz Done, please take another look. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks a lot!
* Add a new method, failAfterWarningOrError. If used instead of failAfterError, gulp will effectively consider validator warnings as errors. I've extracted a helper routine to avoid duplicating too much code. * New usage in README and new amphtml-validator version in package.json.
* Add a new method, failAfterWarningOrError. If used instead of failAfterError, gulp will effectively consider validator warnings as errors. I've extracted a helper routine to avoid duplicating too much code. * New usage in README and new amphtml-validator version in package.json.
If used instead of failAfterError, gulp will effectively consider validator
warnings as errors. I've extracted a helper routine to avoid
duplicating too much code.