diff --git a/StyleCop.Analyzers/Directory.Build.props b/StyleCop.Analyzers/Directory.Build.props
index 0899cc333..736144c76 100644
--- a/StyleCop.Analyzers/Directory.Build.props
+++ b/StyleCop.Analyzers/Directory.Build.props
@@ -49,6 +49,16 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/PropertySummaryDocumentationCodeFixProvider.cs b/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/PropertySummaryDocumentationCodeFixProvider.cs
index 9a5084705..79c7412b1 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/PropertySummaryDocumentationCodeFixProvider.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/PropertySummaryDocumentationCodeFixProvider.cs
@@ -21,7 +21,7 @@ namespace StyleCop.Analyzers.DocumentationRules
///
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(PropertySummaryDocumentationCodeFixProvider))]
[Shared]
- public class PropertySummaryDocumentationCodeFixProvider : CodeFixProvider
+ internal class PropertySummaryDocumentationCodeFixProvider : CodeFixProvider
{
///
public override ImmutableArray FixableDiagnosticIds { get; } =
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/PublicAPI.Shipped.txt b/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/PublicAPI.Shipped.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/PublicAPI.Unshipped.txt b/StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/PublicAPI.Unshipped.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/InheritdocCodeFixProviderUnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/InheritdocCodeFixProviderUnitTests.cs
index 83cef1b84..5b5efceea 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/InheritdocCodeFixProviderUnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/InheritdocCodeFixProviderUnitTests.cs
@@ -194,7 +194,6 @@ public class ChildClass : ParentClass
Diagnostic(SA1600).WithLocation(12, 35),
},
FixedCode = testCode,
- FixedState = { InheritanceMode = StateInheritanceMode.AutoInheritAll },
NumberOfIncrementalIterations = 1,
NumberOfFixAllIterations = 1,
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
@@ -232,7 +231,6 @@ public class ChildClass : ParentClass
Diagnostic(SA1600).WithLocation(12, 35),
},
FixedCode = testCode,
- FixedState = { InheritanceMode = StateInheritanceMode.AutoInheritAll },
NumberOfIncrementalIterations = 1,
NumberOfFixAllIterations = 1,
}.RunAsync(CancellationToken.None).ConfigureAwait(false);
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1609UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1609UnitTests.cs
index dd88ed39f..140bcbdd1 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1609UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1609UnitTests.cs
@@ -414,14 +414,6 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
},
};
- if (source == fixedSource)
- {
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
- }
-
test.ExpectedDiagnostics.AddRange(expected);
return test.RunAsync(cancellationToken);
}
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1610UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1610UnitTests.cs
index cd8e76b6f..6bf2d2ada 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1610UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1610UnitTests.cs
@@ -414,18 +414,10 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
},
};
- if (source == fixedSource)
+ if (source == fixedSource && offerEmptyFixer)
{
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
-
- if (offerEmptyFixer)
- {
- test.NumberOfIncrementalIterations = 1;
- test.NumberOfFixAllIterations = 1;
- }
+ test.NumberOfIncrementalIterations = 1;
+ test.NumberOfFixAllIterations = 1;
}
test.ExpectedDiagnostics.AddRange(expected);
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1616UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1616UnitTests.cs
index 556d0eb4f..d27c13d38 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1616UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1616UnitTests.cs
@@ -612,18 +612,10 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
},
};
- if (source == fixedSource)
+ if (source == fixedSource && offerEmptyFixer)
{
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
-
- if (offerEmptyFixer)
- {
- test.NumberOfIncrementalIterations = 1;
- test.NumberOfFixAllIterations = 1;
- }
+ test.NumberOfIncrementalIterations = 1;
+ test.NumberOfFixAllIterations = 1;
}
test.ExpectedDiagnostics.AddRange(expected);
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1617UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1617UnitTests.cs
index d9b842629..86648986e 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1617UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1617UnitTests.cs
@@ -359,14 +359,6 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
},
};
- if (source == fixedSource)
- {
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
- }
-
test.ExpectedDiagnostics.AddRange(expected);
return test.RunAsync(cancellationToken);
}
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1629UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1629UnitTests.cs
index c94a682a9..e59a4cc55 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1629UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1629UnitTests.cs
@@ -869,14 +869,6 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
test.TestCode = source;
test.FixedCode = fixedSource;
- if (source == fixedSource)
- {
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
- }
-
return test.RunAsync(cancellationToken);
}
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs
index ed5321f04..0e8961745 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1642UnitTests.cs
@@ -1245,14 +1245,6 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
test.TestCode = source;
test.FixedCode = fixedSource;
- if (source == fixedSource)
- {
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
- }
-
return test.RunAsync(cancellationToken);
}
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1643UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1643UnitTests.cs
index 0af620c72..86c73bd02 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1643UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1643UnitTests.cs
@@ -346,14 +346,6 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
test.TestCode = source;
test.FixedCode = fixedSource;
- if (source == fixedSource)
- {
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
- }
-
return test.RunAsync(cancellationToken);
}
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1651UnitTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1651UnitTests.cs
index 35b523863..5684ef4f0 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1651UnitTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1651UnitTests.cs
@@ -264,14 +264,6 @@ private static Task VerifyCSharpFixAsync(string source, DiagnosticResult[] expec
test.TestCode = source;
test.FixedCode = fixedSource;
- if (source == fixedSource)
- {
- test.FixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.FixedState.MarkupHandling = MarkupMode.Allow;
- test.BatchFixedState.InheritanceMode = StateInheritanceMode.AutoInheritAll;
- test.BatchFixedState.MarkupHandling = MarkupMode.Allow;
- }
-
return test.RunAsync(cancellationToken);
}
diff --git a/StyleCop.Analyzers/StyleCop.Analyzers.Test/HelperTests/ObjectPools/SharedPoolsTests.cs b/StyleCop.Analyzers/StyleCop.Analyzers.Test/HelperTests/ObjectPools/SharedPoolsTests.cs
index 0583a8ad3..bbd62dc4b 100644
--- a/StyleCop.Analyzers/StyleCop.Analyzers.Test/HelperTests/ObjectPools/SharedPoolsTests.cs
+++ b/StyleCop.Analyzers/StyleCop.Analyzers.Test/HelperTests/ObjectPools/SharedPoolsTests.cs
@@ -211,17 +211,31 @@ public void TestClearAndFreeLarge()
[Fact]
public void TestPooledObjectHandlesNullAllocation()
{
- object Allocator(ObjectPool