You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Global suppressions allow suppressing analyzer diagnostics on specific symbols via an attribute that requires a "Target" string argument that encodes the fully qualified name of the symbol. This target can be specified in one of the following formats:
Roslyn's documentation comment ID format, which has a ~ prefix followed by the symbol's documentation comment ID. This is the format of suppressions generated by the code fixes/light bulb in Visual Studio
Legacy FxCop's custom format for post-build FxCopCmd.exe based suppressions.
Roslyn's format is the officially supported and recommended format for global suppression target. Legacy FxCop's format is supported only for backwards compatibility, and recently has shown performance issues in the IDE typing scenarios while attempting to decode the target. See https://developercommunity.visualstudio.com/content/problem/1026087/slow-ide-after-edits.html for an example typing trace dominated by attempting to decode a global suppression in legacy FxCop format.
This issue tracks adding a new analyzer/code fix to detect global suppressions in legacy FxCop format, and offering a code fix to convert them to the Roslyn's format.
The text was updated successfully, but these errors were encountered:
…lyn doc comment ID format suppressions
Additionally, I have also addressed dotnet#44343 to avoid unnecessary list allocations in SuppressMessage TargetResolver
Fixesdotnet#44362Fixesdotnet#44343
Global suppressions allow suppressing analyzer diagnostics on specific symbols via an attribute that requires a "Target" string argument that encodes the fully qualified name of the symbol. This target can be specified in one of the following formats:
~
prefix followed by the symbol's documentation comment ID. This is the format of suppressions generated by the code fixes/light bulb in Visual StudioRoslyn's format is the officially supported and recommended format for global suppression target. Legacy FxCop's format is supported only for backwards compatibility, and recently has shown performance issues in the IDE typing scenarios while attempting to decode the target. See https://developercommunity.visualstudio.com/content/problem/1026087/slow-ide-after-edits.html for an example typing trace dominated by attempting to decode a global suppression in legacy FxCop format.
This issue tracks adding a new analyzer/code fix to detect global suppressions in legacy FxCop format, and offering a code fix to convert them to the Roslyn's format.
The text was updated successfully, but these errors were encountered: