Skip to content
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

False positive on email addresses #708

Open
geor-g opened this issue Oct 15, 2018 · 3 comments
Open

False positive on email addresses #708

geor-g opened this issue Oct 15, 2018 · 3 comments

Comments

@geor-g
Copy link

geor-g commented Oct 15, 2018

Hi!

It looks like codespell does not recognize email addresses, so
something like the following:

  ,--- codespell.txt ---
  Thanks to <[email protected]>.
  `---

triggers an error, when it should not:

  ,---
  $ codespell codespell.txt
  codespell.txt:1: cas  ==> case
  `---

I just had to disable such false positive in dpkg codespell unit test,
which means I'll be unable to notice such possible problems in the
future. It would be nice if this could be improved. :)

Thnks,
Guillem

Forwarded: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910578

@geor-g
Copy link
Author

geor-g commented Oct 15, 2018

This might relate to #676 as well.

@peternewman
Copy link
Collaborator

@ge-fa you could probably workaround this with a custom regex I think, treating the at or slash as part of a word. Personally I'd be inclined to just ignore the line, as I'd hope generally words in domains/emails are likely to be valid spellings and I'd want it to catch [email protected].

@tillea
Copy link

tillea commented Mar 11, 2024

Any chance this might get fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants