I noticed that we end up treating a heredoc as one big logical line,
then passing it through things like the line-length check. So
cat <<EOF
this is normal lines
that get picked up as a long line!
EOF
end up triggering the long-line exception ... clearly not what is
intended.
In fact, there's not much we can do with heredocs. They are usually
some weird syntax for a config file, or something else you're writing
out in bulk. Often they have offsets that just don't match what we
want, etc.
Thus most logical thing to do seems to be to just ignore whatever is
in the heredoc.
I also noticed we don't handle <<'EOF', which is another common idiom,
so add that to the regex. Also add a test-case to ensure we're
ignoring the heredoc contents.
Change-Id: I2e3d66f27ff4c0d1f542511ca3e19c29a596896f