Skip to content

[MTP] Improve performance of validating command line options#5655

Merged
Evangelink merged 23 commits into
mainfrom
copilot/fix-5651
Apr 21, 2026
Merged

[MTP] Improve performance of validating command line options#5655
Evangelink merged 23 commits into
mainfrom
copilot/fix-5651

Update CommandLineOptionsValidator.cs

97c8299
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx failed Jun 2, 2025 in 16m 3s

Build #20250602.37 failed

Annotations

Check failure on line 105 in src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs#L105

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs(105,45): error IDE0028: (NETCORE_ENGINEERING_TELEMETRY=Build) Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028)

Check failure on line 177 in src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs#L177

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs(177,44): error IDE0028: (NETCORE_ENGINEERING_TELEMETRY=Build) Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028)

Check failure on line 136 in src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs#L136

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs(136,87): error IDE0028: (NETCORE_ENGINEERING_TELEMETRY=Build) Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028)

Check failure on line 145 in src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs#L145

src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineOptionsValidator.cs(145,33): error IDE0028: (NETCORE_ENGINEERING_TELEMETRY=Build) Collection initialization can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0028)