Update analyzer versions (dotnet/corefxdotnet/coreclr#40778)
authorStephen Toub <stoub@microsoft.com>
Tue, 3 Sep 2019 22:07:33 +0000 (18:07 -0400)
committerStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 01:29:28 +0000 (21:29 -0400)
In particular to pick up StyleCop fixes related to C# 8 and nullability.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/d2ecc4dc905b3c7dd49004687e7bb80dda98cbe3

src/libraries/System.Private.CoreLib/src/CodeAnalysis.ruleset

index 160c923..6b05c58 100644 (file)
     <Rule Id="SA1136" Action="None" /> <!-- Enum values should be on separate lines -->
     <Rule Id="SA1137" Action="None" /> <!-- Elements should have the same indentation -->
     <Rule Id="SA1139" Action="None" /> <!-- Use literal suffix notation instead of casting -->
+    <Rule Id="SA1141" Action="None" /> <!-- Use tuple syntax -->
+    <Rule Id="SA1142" Action="None" /> <!-- Refer to tuple fields by name -->
     <Rule Id="SA1200" Action="None" /> <!-- Using directive should appear within a namespace declaration -->
     <Rule Id="SA1201" Action="None" /> <!-- Elements should appear in the correct order -->
     <Rule Id="SA1202" Action="None" /> <!-- Elements should be ordered by access -->
     <Rule Id="SA1312" Action="None" /> <!-- Variable should begin with lower-case letter -->
     <Rule Id="SA1313" Action="None" /> <!-- Parameter should begin with lower-case letter -->
     <Rule Id="SA1314" Action="None" /> <!-- Type parameter names should begin with T -->
+    <Rule Id="SA1316" Action="None" /> <!-- Tuple element names should use correct casing -->
     <Rule Id="SA1401" Action="None" /> <!-- Fields should be private -->
     <Rule Id="SA1402" Action="None" /> <!-- File may only contain a single type -->
     <Rule Id="SA1403" Action="None" /> <!-- File may only contain a single namespace -->
     <Rule Id="SA1407" Action="None" /> <!-- Arithmetic expressions should declare precedence -->
     <Rule Id="SA1408" Action="None" /> <!-- Conditional expressions should declare precedence -->
     <Rule Id="SA1413" Action="None" /> <!-- Use trailing comma in multi-line initializers -->
+    <Rule Id="SA1414" Action="None" /> <!-- Tuple types in signatures should have element names -->
     <Rule Id="SA1500" Action="None" /> <!-- Braces for multi-line statements should not share line -->
     <Rule Id="SA1501" Action="None" /> <!-- Statement should not be on a single line -->
     <Rule Id="SA1502" Action="None" /> <!-- Element should not be on a single line -->