Another small improvement that would be nice to have, is to show output on stdout, so it can be piped to other utils. At this moment, I have to redirect stderr to stdout in order to process it:
$ html5validator --root src/main/webapp/WEB-INF/views --format json 2>&1 | less
The JSON/XML output can't be parsed by other tools (like
jq
) because it's invalid:Example of JSON output:
Example of XML output (it looks like XML within JSON):
Another small improvement that would be nice to have, is to show output on stdout, so it can be piped to other utils. At this moment, I have to redirect stderr to stdout in order to process it: