Now that 6.x is being worked on, I would like to re-raise the issue about
having ReSharper help with fixing an internationalization coding analysis
issue with string.Format() (and similar) methods:
I would like to have a quick-fix to insert the CultureInfo.InvariantCulture
or CultureInfo.CurrentCulture parameter quickly and easily. And a
code-cleanup option perhaps. Or an inspection or "hint" to always include
it (i.e. flag any uses of string.Format() and associated APIs that do not
specify a CultureInfo parameter).
Since this is one of the most common Code Analysis warnings I see, using
Visual Studio code analysis, it would be nice if ReSharper could help fix
all these issues up quickly. I realize that it can't possibly "know" which
of two to use (Invariant or Current), but offering each as a quick-fix would
be very useful... and the option to have cleanup just use one or the other
(specified in the cleanup configuration, defaulting to off of course) would
be useful too... since for the most part, one file seems to have one method
in it (i.e. at least in my code, there isn't a lot of mixing).
Can this please be considered?
A similar quick-fix or flagging/hint/suggestion for string comparison type
parameters would be useful as well... these too are frequent Code Analysis