diff --git a/src/GUI/efcpt/HostedServices/ScaffoldHostedService.cs b/src/GUI/efcpt/HostedServices/ScaffoldHostedService.cs index 738d6b264..e8dfa66b4 100644 --- a/src/GUI/efcpt/HostedServices/ScaffoldHostedService.cs +++ b/src/GUI/efcpt/HostedServices/ScaffoldHostedService.cs @@ -69,6 +69,8 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) scaffoldOptions.ConfigFile.FullName); DisplayService.MarkupLine(); +#pragma warning disable S2589 // Boolean expressions should not be gratuitous +#pragma warning disable S2583 // Conditionally executed code should be reachable if (commandOptions.UseT4 && Constants.Version > 6) { var t4Result = T4Helper.DropT4Templates(commandOptions.T4TemplatePath ?? commandOptions.ProjectPath, Constants.CodeGeneration); @@ -77,6 +79,8 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) DisplayService.MarkupLine(t4Result, Color.Default); } } +#pragma warning restore S2583 // Conditionally executed code should be reachable +#pragma warning restore S2589 // Boolean expressions should not be gratuitous sw = Stopwatch.StartNew(); var result = DisplayService.Wait(