-
Notifications
You must be signed in to change notification settings - Fork 166
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
Suppress mgmt track2 analyzer errors without changing generated codes #3486
Labels
Mgmt
This issue is related to a management-plane library.
Mgmt-EngSys
Engineering System (Management Plane Specific)
Comments
archerzz
added
Mgmt
This issue is related to a management-plane library.
Mgmt-EngSys
Engineering System (Management Plane Specific)
labels
Jun 9, 2023
Looks like we don't need to design our own way to suppress errors. After investigation, there are a few options to suppress analyzer errors:
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes", Scope = "member", Target = "System.Runtime.CompilerServices.StrongBox`1.#System.Runtime.CompilerServices.IStrongBox.Value")] Option 5 can fulfill our requirement:
@m-nash ^^ |
archerzz
added a commit
to archerzz/azure-sdk-for-net
that referenced
this issue
Aug 1, 2023
- proposed way to change eng props to add mgmt sdk analyzers - add a example of how to suppress warning Azure/autorest.csharp#3486 Azure/autorest.csharp#3488
Other ways to handle excessive errors:
|
By now, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Mgmt
This issue is related to a management-plane library.
Mgmt-EngSys
Engineering System (Management Plane Specific)
Description
As an SDK developer, I'd like to suppress some errors in the generated codes, after reviewing with arch board.
If we apply mgmt track2 analyzer, there will be some errors which we decide we can ignore. Instead of suppressing in project level, we need to figure out how we can suppress in finer grain. Looks like we need an exception list file for each project, like cspell files, which can point to specific model properties or methods, like:
The text was updated successfully, but these errors were encountered: