Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Roslyn Analyzers #23793

Merged
merged 5 commits into from
Sep 22, 2021
Merged

Update Roslyn Analyzers #23793

merged 5 commits into from
Sep 22, 2021

Conversation

heaths
Copy link
Member

@heaths heaths commented Sep 3, 2021

@heaths
Copy link
Member Author

heaths commented Sep 3, 2021

Oops, I forgot to create this branch from my FETCH_HEAD after git fetch upstream main. I'll rebase so it's just the last commit. 🙄

@heaths heaths force-pushed the azure-sdk-issue1961 branch from 9660304 to 2054711 Compare September 3, 2021 23:48
@heaths heaths changed the title azure sdk issue1961 Update Roslyn Analyzers Sep 3, 2021
@heaths heaths enabled auto-merge (squash) September 3, 2021 23:50
Update Azure.ClientSdk.Analyzers and suppress newly-added AZC0016.
Relates to Azure/azure-sdk-tools#1961
@heaths heaths force-pushed the azure-sdk-issue1961 branch from 2054711 to bbbbcec Compare September 21, 2021 20:57
@heaths
Copy link
Member Author

heaths commented Sep 21, 2021

@pakrym @ShivangiReja @AlexanderSher turns out the generator generates lowercase "-preview" suffixes.

Azure/autorest.csharp#1524

I can't really add exceptions, either. I would have to define hand-written models, but presumably none of these versions have shipped yet because they are all under "Generated". So should we just "break" them instead? Presumably, few if any people will be broken because for all but a couple of these it's the only version.

Or in cases like this for generated code, should we use project-global suppressions?

@heaths heaths disabled auto-merge September 21, 2021 23:09
@heaths heaths enabled auto-merge (squash) September 21, 2021 23:54
@heaths heaths merged commit 8ba15b3 into Azure:main Sep 22, 2021
@heaths heaths deleted the azure-sdk-issue1961 branch September 22, 2021 00:37
danielortega-msft added a commit to danielortega-msft/azure-sdk-for-net that referenced this pull request Dec 30, 2021
Manually declaring this class and supressing codegen ensures that:
1. ServiceVersion members are not overwritten, preserving compatibility
2. ServiceVersion members can now use PascalCase

For more information on this issues, see:
- Azure/autorest.csharp#1524
- Azure#24153
- Azure#23793
- Azure/autorest.csharp#1497
whisper6284 pushed a commit that referenced this pull request Jan 18, 2022
…ew API version in the PhoneNumbers SDK (#26029)

* Generate SDK for PhoneNumbers API version 2022-01-11-preview2

* Add session recordings for latest API version

* Update recorded sessions for failing tests

These recordings are the same as the previous ones, but with the new API version. This had to be done due to an issue with the sanitizer.

* Suppress ServiceVersion member name checks

* Add missing ServiceVersion member

* Don't auto generate PhoneNumbersClientOptions

Manually declaring this class and supressing codegen ensures that:
1. ServiceVersion members are not overwritten, preserving compatibility
2. ServiceVersion members can now use PascalCase

For more information on this issues, see:
- Azure/autorest.csharp#1524
- #24153
- #23793
- Azure/autorest.csharp#1497

* Update API version in client and test recordings

TODO: Update autorest config file once the spec is merged

* Use latest autorest spec

* Add changelog entry for 1.1.0-beta.1 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants