Skip to content

Commit

Permalink
Use Microsoft.CodeAnalysis.PublicApiAnalyzers
Browse files Browse the repository at this point in the history
Reference: #1269

Use the same API analysis tool that is used in the RabbitMQ.Stream.Client library.
  • Loading branch information
lukebakken committed Dec 18, 2023
1 parent 3794b4c commit d6d28d7
Show file tree
Hide file tree
Showing 6 changed files with 1,049 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,17 @@ csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Analyzers
dotnet_code_quality.api_surface = public
dotnet_code_quality.ca1802.api_surface = private, internal

dotnet_public_api_analyzer.require_api_files = true

dotnet_diagnostic.RS0026.severity = none
dotnet_diagnostic.RS0027.severity = none
dotnet_diagnostic.RS0036.severity = none
dotnet_diagnostic.RS0041.severity = none
dotnet_diagnostic.RS0051.severity = error

# C++ Files
[*.{cpp,h,in}]
curly_bracket_next_line = true
Expand Down
Empty file.
Empty file.
1 change: 1 addition & 0 deletions projects/RabbitMQ.Client/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#nullable enable
Loading

0 comments on commit d6d28d7

Please sign in to comment.