Skip to content

Commit

Permalink
Temporarily disable CA1852 for top-level statements
Browse files Browse the repository at this point in the history
This rule is currently being incorrectly applied to the generated
`Program` class [1] and therefore has to be suppressed manually.

A fix [2] has already been committed to the Roslyn Analyzers repo once
that fix has been included in a future SDK update.

[1] dotnet/roslyn-analyzers#6141
[2] dotnet/roslyn-analyzers#6278
  • Loading branch information
amis92 authored Feb 2, 2023
1 parent 3d12ce2 commit bf3710f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BSData.GalleryDashboard/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma warning disable CA1852

using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;

Expand Down

0 comments on commit bf3710f

Please sign in to comment.