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

Ignore hexadecimal "hashes" of length 32 or greater. #330

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

nmathewson
Copy link
Contributor

By experimentation (see ticket), it seems that same-case hexadecimal
strings of 32 characters or longer are almost never intended to hold
text. By treating such strings as ignored, we can resist a larger
category of false positives.

Closes #326.

@epage
Copy link
Collaborator

epage commented Aug 20, 2021

Looks like rustfmt is complaining. Don't worry too much about the lint committer, that is more advisory

By experimentation (see ticket), it seems that same-case hexadecimal
strings of 32 characters or longer are almost never intended to hold
text.  By treating such strings as ignored, we can resist a larger
category of false positives.

Closes crate-ci#326.
@nmathewson nmathewson force-pushed the flexible_hash_literals branch from 8727847 to 739d1a2 Compare August 20, 2021 16:35
@nmathewson
Copy link
Contributor Author

Ran "cargo fmt"; squashed; re-pushed.

@nmathewson
Copy link
Contributor Author

Okay; looks green except for "lint commits"

@epage epage merged commit 44d9828 into crate-ci:master Aug 20, 2021
@epage
Copy link
Collaborator

epage commented Aug 20, 2021

Released

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

Successfully merging this pull request may close these issues.

Find some way to tolerate hexadecimal better
2 participants