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

.NET Client SDK Analyzers .ctor rules firing false positives #127

Open
tg-msft opened this issue Jul 31, 2019 · 2 comments
Open

.NET Client SDK Analyzers .ctor rules firing false positives #127

tg-msft opened this issue Jul 31, 2019 · 2 comments
Assignees

Comments

@tg-msft
Copy link
Member

tg-msft commented Jul 31, 2019

Storage triggers the following analyzer rules but I think they're false positives:

You can repro by removing the NoWarns at https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Directory.Build.props#L19

tg-msft added a commit to tg-msft/azure-sdk-for-net that referenced this issue Jul 31, 2019
tg-msft added a commit to Azure/azure-sdk-for-net that referenced this issue Aug 1, 2019
@kinelski
Copy link
Member

kinelski commented Oct 29, 2020

Related: our guidelines state that:

If the options type can be shared by multiple client types, name it with a plural or more general name. For example, the BlobClientsOptions class can be used by BlobClient, BlobContainerClient, and BlobAccountClient.

However, we get an AZC0007 when using the ClientsOptions suffix.

@heaths
Copy link
Member

heaths commented Jun 21, 2021

I think this is out of date. According to current guidelines at https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-client-constructor-no-default-params we should not use default params for constructors (including the req below that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants