-
Notifications
You must be signed in to change notification settings - Fork 183
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
Comments
Some of these are still blocked by Azure/azure-sdk-tools#127
Some of these are still blocked by Azure/azure-sdk-tools#127
Related: our guidelines state that:
However, we get an AZC0007 when using the |
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). |
Storage triggers the following analyzer rules but I think they're false positives:
AZC0006: The guidelines show you can have optional
*ClientOptions
for your less important ctors per https://azuresdkspecs.z5.web.core.windows.net/DotNetSpec.html#dotnet-client-ctor-overloads but the rule appears to be more strict by demanding separate overloadsAZC0007: This is looking for
AppendBlobClientOptions
instead ofBlobClientOptions
and firingYou can repro by removing the
NoWarn
s at https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Directory.Build.props#L19The text was updated successfully, but these errors were encountered: