Skip to content

Commit

Permalink
try to fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
v-wuzhai committed Oct 18, 2023
1 parent 77a7ef6 commit 839cd95
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading;
using Microsoft.Extensions.Logging;
using Microsoft.TemplateEngine.Abstractions;
using Microsoft.TemplateEngine.Edge;
Expand Down Expand Up @@ -74,7 +75,22 @@ public string CreateTemporaryFolder(string name = "")

public void Dispose()
{
_foldersToCleanup.ForEach(f => Directory.Delete(f, true));
_foldersToCleanup.ForEach(f =>

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 78 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L78

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(78,43): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)
{
if (Directory.Exists(f))
{
try

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build Linux release_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci (Build OSX debug_configuration)

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error IDE0055: (NETCORE_ENGINEERING_TELEMETRY=Build) Fix formatting (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0055)

Check failure on line 82 in test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs

View check run for this annotation

Azure Pipelines / templating-ci

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs#L82

test/Microsoft.TemplateEngine.TestHelper/EnvironmentSettingsHelper.cs(82,24): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)
{
Directory.Delete(f, true);
}
catch
{
Thread.Sleep(2000);
Directory.Delete(f, true);
}
}
});
}
}
}

0 comments on commit 839cd95

Please sign in to comment.