Update FxCopAnalyzers to 2.9.4 (dotnet/corefx#39868)
authorStephen Toub <stoub@microsoft.com>
Tue, 30 Jul 2019 03:03:46 +0000 (23:03 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Jul 2019 03:03:46 +0000 (23:03 -0400)
Commit migrated from https://github.com/dotnet/corefx/commit/b2ff0db61cc9348775d73a8934ad80218ded8bc0

eng/Analyzers.props
src/libraries/CodeAnalysis.ruleset

index 1f85e2e..2f4c8c0 100644 (file)
@@ -1,7 +1,7 @@
 <Project>
   <ItemGroup>
     <PackageReference Include="Microsoft.DotNet.CodeAnalysis" Version="$(MicrosoftDotNetCodeAnalysisPackageVersion)" />
-    <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.2.0-beta4-final" />
-    <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4-beta1.final" />
+    <PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.3.0-beta1-final" />
+    <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.4" />
   </ItemGroup>
 </Project>
index 97a490c..bc48c51 100644 (file)
@@ -52,6 +52,7 @@
     <Rule Id="CA1820" Action="None" /> <!-- Test for empty strings using string length -->
     <Rule Id="CA1822" Action="None" /> <!-- Mark members as static -->
     <Rule Id="CA1823" Action="None" /> <!-- Avoid unused private fields -->
+    <Rule Id="CA1827" Action="None" /> <!-- Do not use Count() when Any() can be used -->
     <Rule Id="CA2000" Action="None" /> <!-- Dispose objects before losing scope -->
     <Rule Id="CA2010" Action="None" /> <!-- Always consume the value returned by methods marked with PreserveSigAttribute -->
     <Rule Id="CA2100" Action="None" /> <!-- Review SQL queries for security vulnerabilities -->