Skip to content

Commit d043df0

Browse files
committed
Enable CA2021: Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types
https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021
1 parent 506869c commit d043df0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.globalconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,10 @@ dotnet_diagnostic.CA2015.severity = warning
558558
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2016
559559
dotnet_diagnostic.CA2016.severity = suggestion
560560

561+
# CA2021: Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types
562+
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021
563+
dotnet_diagnostic.CA2021.severity = warning
564+
561565
# CA2100: Review SQL queries for security vulnerabilities
562566
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2100
563567
dotnet_diagnostic.CA2100.severity = none

0 commit comments

Comments
 (0)