-
Notifications
You must be signed in to change notification settings - Fork 466
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
Add CA1872: Prefer 'Convert.ToHexString' over 'BitConverter.ToString' #6967
Merged
Commits on Sep 30, 2023
-
Add CA1872: Prefer 'Convert.ToHexString' over 'BitConverter.ToString'
This analyzer detects the usage of the pattern `BitConverter.ToString(bytes).Replace("-", "")` to convert an array of bytes to an uppercase hex string (without hyphens in between) and replaces it with a call to `Convert.ToHexString(bytes)`. The analyzer will also try to preserve chaining `ToLower*` in between for a lowercase hex string.
Configuration menu - View commit details
-
Copy full SHA for b4b21d8 - Browse repository at this point
Copy the full SHA b4b21d8View commit details
Commits on Oct 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f19dd74 - Browse repository at this point
Copy the full SHA f19dd74View commit details
Commits on Jan 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1e97ba6 - Browse repository at this point
Copy the full SHA 1e97ba6View commit details
Commits on Mar 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5e3b6aa - Browse repository at this point
Copy the full SHA 5e3b6aaView commit details
Commits on Mar 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6db3a84 - Browse repository at this point
Copy the full SHA 6db3a84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0efec42 - Browse repository at this point
Copy the full SHA 0efec42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0857495 - Browse repository at this point
Copy the full SHA 0857495View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed2c948 - Browse repository at this point
Copy the full SHA ed2c948View commit details
Commits on Mar 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 309d4ea - Browse repository at this point
Copy the full SHA 309d4eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0311073 - Browse repository at this point
Copy the full SHA 0311073View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe1ca9a - Browse repository at this point
Copy the full SHA fe1ca9aView commit details
Commits on Mar 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9429853 - Browse repository at this point
Copy the full SHA 9429853View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3fee4a - Browse repository at this point
Copy the full SHA f3fee4aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.