Skip to content

Commit d6d28d7

Browse files
committed
Use Microsoft.CodeAnalysis.PublicApiAnalyzers
Reference: #1269 Use the same API analysis tool that is used in the RabbitMQ.Stream.Client library.
1 parent 3794b4c commit d6d28d7

6 files changed

+1049
-0
lines changed

Diff for: .editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,17 @@ csharp_space_between_parentheses = false
158158
csharp_space_between_square_brackets = false
159159

160160
# Analyzers
161+
dotnet_code_quality.api_surface = public
161162
dotnet_code_quality.ca1802.api_surface = private, internal
162163

164+
dotnet_public_api_analyzer.require_api_files = true
165+
166+
dotnet_diagnostic.RS0026.severity = none
167+
dotnet_diagnostic.RS0027.severity = none
168+
dotnet_diagnostic.RS0036.severity = none
169+
dotnet_diagnostic.RS0041.severity = none
170+
dotnet_diagnostic.RS0051.severity = error
171+
163172
# C++ Files
164173
[*.{cpp,h,in}]
165174
curly_bracket_next_line = true

Diff for: projects/RabbitMQ.Client/InternalAPI.Shipped.txt

Whitespace-only changes.

Diff for: projects/RabbitMQ.Client/InternalAPI.Unshipped.txt

Whitespace-only changes.

Diff for: projects/RabbitMQ.Client/PublicAPI.Shipped.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#nullable enable

0 commit comments

Comments
 (0)