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
We recently had a bug (#18831) because of a StartsWith lacking StringComparison.Ordinal. There are official FxCop analyzers for this kind of thing, we should start using them.
The text was updated successfully, but these errors were encountered:
The following rules led to code changes:
- CA2000: Dispose objects before losing scope
- CA2012: Use ValueTasks correctly
- CA2008: Do not create tasks without passing a TaskScheduler
- CA2016: Forward the 'CancellationToken' parameter to methods that take one
- CA1310: Specify StringComparison for correctness
- CA1309: Use ordinal stringcomparison
- CA1304: Specify CultureInfo
Part of #18870
ghost
pushed a commit
that referenced
this issue
Sep 22, 2020
The following rules led to code changes:
- CA2000: Dispose objects before losing scope
- CA2012: Use ValueTasks correctly
- CA2008: Do not create tasks without passing a TaskScheduler
- CA2016: Forward the 'CancellationToken' parameter to methods that take one
- CA1310: Specify StringComparison for correctness
- CA1309: Use ordinal stringcomparison
- CA1304: Specify CultureInfo
Part of #18870
We recently had a bug (#18831) because of a StartsWith lacking StringComparison.Ordinal. There are official FxCop analyzers for this kind of thing, we should start using them.
The text was updated successfully, but these errors were encountered: