Created
August 27, 2015 03:46
-
-
Save adg/c5a38f2d6f342ef4e96e to your computer and use it in GitHub Desktop.
hlint - a linter for HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
file=${1:-$GOROOT/doc/go_spec.html} | |
tidy -utf8 -q -e $file 2>&1 | sed 's;line \([0-9][0-9]*\) column [0-9][0-9]* - ;'$file':\1: ;' | egrep -v 'missing <!DOCTYPE> declaration|inserting missing .title. element' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on the work of @robpike