Skip to content

Commit

Permalink
Stop suppressing CA1852 for top-level statements
Browse files Browse the repository at this point in the history
The bug [1] that made adding this suppression [2] necessary has been
fixed [3] in .NET 8.

[1] dotnet/roslyn-analyzers#6141
[2] 5a4dc3d
[3] dotnet/roslyn-analyzers#6278
  • Loading branch information
smfeest committed Nov 19, 2023
1 parent 0d128b8 commit ac0d805
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Buttercup.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Razor;

#pragma warning disable CA1852

var builder = WebApplication.CreateBuilder(args);

var isDevelopment = builder.Environment.IsDevelopment();
Expand Down

0 comments on commit ac0d805

Please sign in to comment.