You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MA0076 - Do not use implicit culture-sensitive ToString in interpolated strings
_=$"abc{-1}";// non-compliant as the result depends on the current culture_=FormattableString.Invariant($"abc{-1}");// compliant but will generate MA0111_=string.Create(CultureInfo.InvariantCulture,$"abc{-1}");// compliantFormattableStringstr=$"abc{-1}";// compliant
Configuration
# Exclude ToString methods from analysis
MA0076.exclude_tostring_methods=true
# Report Nullable<T>.ToString when T is culture-sensitive
MA0076.consider_nullable_types=true