Skip to content

Commit 47f8242

Browse files
xtqqczzeSIRMARGIN
authored andcommitted
Enable CA2021: Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types (PowerShell#25813)
1 parent 62303ec commit 47f8242

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.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)