From bafe255a1a845ea234efaca4eb32ddfbf3dffb2c Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Thu, 24 Dec 2020 04:18:41 +0000 Subject: [PATCH] Enable IDE0077: LegacyFormatSuppressMessageAttribute https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0077 --- .globalconfig | 2 +- .../commands/utility/UtilityCommon.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.globalconfig b/.globalconfig index 9fe56a6dc21..a013649a43a 100644 --- a/.globalconfig +++ b/.globalconfig @@ -959,7 +959,7 @@ dotnet_diagnostic.IDE0075.severity = warning dotnet_diagnostic.IDE0076.severity = silent # IDE0077: LegacyFormatSuppressMessageAttribute -dotnet_diagnostic.IDE0077.severity = silent +dotnet_diagnostic.IDE0077.severity = warning # IDE0078: UsePatternCombinators dotnet_diagnostic.IDE0078.severity = silent diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs index 0658c7014c4..69b89e928ce 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/UtilityCommon.cs @@ -7,7 +7,7 @@ using System.Management.Automation; using System.Text; -[module: SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Scope = "type", Target = "Microsoft.PowerShell.Commands.ByteCollection")] +[module: SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Scope = "type", Target = "~T:Microsoft.PowerShell.Commands.ByteCollection")] namespace Microsoft.PowerShell.Commands {