Skip to content

Instantly share code, notes, and snippets.

@adg
Created August 27, 2015 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adg/c5a38f2d6f342ef4e96e to your computer and use it in GitHub Desktop.
Save adg/c5a38f2d6f342ef4e96e to your computer and use it in GitHub Desktop.
hlint - a linter for HTML
#!/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'
@adg
Copy link
Author

adg commented Aug 27, 2015

based on the work of @robpike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment