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 for random strings #978

Closed
rnbguy opened this issue Apr 3, 2024 · 2 comments
Closed

False positive for random strings #978

rnbguy opened this issue Apr 3, 2024 · 2 comments

Comments

@rnbguy
Copy link

rnbguy commented Apr 3, 2024

The latest version gives false positives for cases similar to the following:

$ cat example.sh
key="1234Iy789"
$ typos example.sh 
error: `Iy` should be `It`
  --> example.sh:1:10
  |
1 | key="1234Iy789"
  |          ^^
  |

If this is intended, how can I resolve this generally? These are part of my unit tests.

@szepeviktor
Copy link
Contributor

You could add a regexp in default.extend-ignore-re.

@epage
Copy link
Collaborator

epage commented Apr 3, 2024

typos has support for several well-known non-identifiers (base64, colors, urls, etc).

We have issues for better recognizing truly random content, particularly #484.

As a workaround, extend-ignore-re can help, see #814 for an example.

As there is an issue for heuristics, I'm closing in favor of that.

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
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