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

Prefer overloads that accept IFormatInfo #10

Open
amanda-mitchell opened this issue Dec 29, 2018 · 0 comments
Open

Prefer overloads that accept IFormatInfo #10

amanda-mitchell opened this issue Dec 29, 2018 · 0 comments
Labels
new analyzer Suggestion for a new analyzer to add

Comments

@amanda-mitchell
Copy link
Contributor

When a method is called that has an overload accepting an IFormatInfo, flag it as an error if this overload is not used.

Code fixes:

  • Supply CultureInfo.InvariantCulture
  • If a FormatInfo is in scope, supply that
  • For ToString calls, if Libronix.Utility or Faithlife.Utility is referenced by the current project and an appropriate member of InvariantConvert is available, switch to it.
@bgrainger bgrainger added the new analyzer Suggestion for a new analyzer to add label Dec 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new analyzer Suggestion for a new analyzer to add
Development

No branches or pull requests

2 participants