html-linter icon indicating copy to clipboard operation
html-linter copied to clipboard

Script returns 0 on Lint failure

Open lextoumbourou opened this issue 10 years ago • 2 comments

Hi guys,

Thanks a lot for putting this tool together. Just have one small issue with it. The html_lint.py script appears to return 0 on Lint failure, making it difficult to use for automated build tools like Travis. It should return a non-0 code on Lint failure, I reckon.

> html_lint.py bad.html
1:1: Error: Indentation: Do not use tabs: Remove the tabs.
> echo $?
0

lextoumbourou avatar Sep 12 '14 01:09 lextoumbourou

Thanks for the report. This was fixed in my fork. I will update the new package to Pypi as soon as they are available again (they are in read mode at the moment).

sk- avatar Sep 28 '14 11:09 sk-

Thanks heaps!

lextoumbourou avatar Sep 28 '14 22:09 lextoumbourou