New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't check for email addresses in verbatim code #471
Comments
This is a bug obviously... the domain part of an email address (those characters after '@'), can be any alphanumerical character or an '-'. With exception that:
"0" is all numerical, so it cannot be a top level domain, and thus it cannot be an email address. |
@norswap thanks for the bug report. This is an issue in linkify. robinst/linkify#29 |
In general I think the verbatim part is fine but the e-mail address detection needs to be improved. This line would not show up if the false-positive was filtered out correctly. |
Excluding code blocks will be tackled in #523. |
This gets ignored in the latest Some content. ``` go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0 ``` Other test content and I call lychee, the code block will be ignored by default:
The old behavior can be restored with
|
Small thing, but with this input:
(So this instruction in a markdown code code block.)
you get lychee output:
Which is obviously not the desired outcome. Verbatim blocks should probably be ignored.
The text was updated successfully, but these errors were encountered: