Skip to content

Azure.ClientSdk.Analyzers_0.1.1-dev.20260420.1

Pre-release
Pre-release

Choose a tag to compare

@azure-sdk azure-sdk released this 21 Apr 00:28
fdc8088
Remove AZC0101 analyzer (migrated to azure-sdk-for-net) (#15200)

* Remove AZC0101 analyzer (migrated to azure-sdk-for-net)

AZC0101 (ConfigureAwait(true) instead of ConfigureAwait(false)) has been
migrated to the azure-sdk-for-net repo in Azure/azure-sdk-for-net#58154.

Changes:
- Remove AZC0101 descriptor from Descriptors.cs
- Remove AZC0101 from AsyncAnalyzer SupportedDiagnostics
- Remove AnalyzeConfigureAwait method and its call sites in MethodBodyAnalyzer
- Delete AZC0101Tests.cs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix line-ending mismatch in refactoring tests on Windows

Normalize both TestCode and FixedCode line endings in
AzureRefactoringVerifier to use Environment.NewLine. This ensures
Roslyn preserves consistent line endings in unchanged code, fixing
DiagnosticScopeCodeRefactoringProviderTest failures on Windows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix missing space in AZC0102 descriptor declaration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Update src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.Tests/AzureRefactoringVerifier.cs

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* Use #if NET6_0_OR_GREATER for ReplaceLineEndings

ReplaceLineEndings is .NET 6+ only. Use manual string Replace on
net472 to fix the build failure.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Christopher Scott <chriscott@hotmail.com>