Skip to content

Commit 2ff4f17

Browse files
committed
Use PublicApiAnalyzer instead of a (broken) unit test
1 parent d37f65a commit 2ff4f17

7 files changed

Lines changed: 11 additions & 36 deletions

File tree

StyleCop.Analyzers/Directory.Build.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@
4949
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="2.11.0-beta2-63603-03" PrivateAssets="all" />
5050
</ItemGroup>
5151

52+
<!-- Public API -->
53+
<ItemGroup>
54+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="2.9.7" PrivateAssets="all" />
55+
</ItemGroup>
56+
57+
<ItemGroup>
58+
<AdditionalFiles Include="PublicAPI.Shipped.txt" Condition="Exists('PublicAPI.Shipped.txt')" />
59+
<AdditionalFiles Include="PublicAPI.Unshipped.txt" Condition="Exists('PublicAPI.Unshipped.txt')" />
60+
</ItemGroup>
61+
5262
<ItemGroup>
5363
<None Include="$(MSBuildThisFileDirectory)*.ruleset" Link="%(Filename)%(Extension)" />
5464

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/DocumentationRules/PropertySummaryDocumentationCodeFixProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace StyleCop.Analyzers.DocumentationRules
2121
/// </summary>
2222
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(PropertySummaryDocumentationCodeFixProvider))]
2323
[Shared]
24-
public class PropertySummaryDocumentationCodeFixProvider : CodeFixProvider
24+
internal class PropertySummaryDocumentationCodeFixProvider : CodeFixProvider
2525
{
2626
/// <inheritdoc/>
2727
public override ImmutableArray<string> FixableDiagnosticIds { get; } =

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/PublicAPI.Shipped.txt

Whitespace-only changes.

StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/PublicAPI.Unshipped.txt

Whitespace-only changes.

StyleCop.Analyzers/StyleCop.Analyzers.Test/PublicApiTests.cs

Lines changed: 0 additions & 35 deletions
This file was deleted.

StyleCop.Analyzers/StyleCop.Analyzers/PublicAPI.Shipped.txt

Whitespace-only changes.

StyleCop.Analyzers/StyleCop.Analyzers/PublicAPI.Unshipped.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)