Add CA1827 code quality rule
MODIFY
.editorconfig
.editorconfig
@@ -257,3 +257,6 @@ dotnet_diagnostic.CA1829.severity = warning
# CA1816: Dispose methods should call SuppressFinalize
dotnet_diagnostic.CA1816.severity = none
+
+# CA1827: Do not use Count() or LongCount() when Any() can be used
+dotnet_diagnostic.CA1827.severity = warning

Add CA1827 code quality rule