dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.72k stars 3.17k forks source link

Use Microsoft.CodeAnalysis.FxCopAnalyzers #18870

Open roji opened 4 years ago

roji commented 4 years ago

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.

ajcvickers commented 4 years ago

Note from triage: Selectively enable useful FxCop rules that won't require many (>~10) suppressions in code.