From 62ad4a4da2f419c3c76154c872cc94c5121cab2d Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Sun, 20 Jun 2021 21:53:17 +0100 Subject: [PATCH 1/3] Add missing `Remove-Alias` HelpUri --- .../commands/utility/RemoveAliasCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/RemoveAliasCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/RemoveAliasCommand.cs index 7cec08e1b10..cd0c4fce327 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/RemoveAliasCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/RemoveAliasCommand.cs @@ -9,7 +9,7 @@ namespace Microsoft.PowerShell.Commands /// /// The implementation of the "Remove-Alias" cmdlet. /// - [Cmdlet(VerbsCommon.Remove, "Alias", DefaultParameterSetName = "Default", HelpUri = "")] + [Cmdlet(VerbsCommon.Remove, "Alias", DefaultParameterSetName = "Default", HelpUri = "https://go.microsoft.com/fwlink/?linkid=2097127")] [Alias("ral")] public class RemoveAliasCommand : PSCmdlet { From caf72a73c5d597e363c9cab179b5d83936a3ed3c Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Sun, 20 Jun 2021 21:55:51 +0100 Subject: [PATCH 2/3] Enable CA2243: Attribute string literals should parse correctly [CA2243: Attribute string literals should parse correctly](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2243) --- .globalconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.globalconfig b/.globalconfig index 4106685466f..e972b78d18a 100644 --- a/.globalconfig +++ b/.globalconfig @@ -635,7 +635,7 @@ dotnet_diagnostic.CA2242.severity = suggestion # CA2243: Attribute string literals should parse correctly # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2243 -dotnet_diagnostic.CA2243.severity = none +dotnet_diagnostic.CA2243.severity = warning # CA2244: Do not duplicate indexed element initializations # https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2244 From 6d147e5cc27fecec765af0cc44f34ceb06d69731 Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Wed, 23 Jun 2021 18:01:47 +0100 Subject: [PATCH 3/3] Update V2Cmdlets.csv --- test/powershell/engine/Help/assets/HelpURI/V2Cmdlets.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/test/powershell/engine/Help/assets/HelpURI/V2Cmdlets.csv b/test/powershell/engine/Help/assets/HelpURI/V2Cmdlets.csv index a88e715c347..465574bca58 100644 --- a/test/powershell/engine/Help/assets/HelpURI/V2Cmdlets.csv +++ b/test/powershell/engine/Help/assets/HelpURI/V2Cmdlets.csv @@ -159,6 +159,7 @@ Register-EngineEvent,https://go.microsoft.com/fwlink/?linkid=2097128 Register-ObjectEvent,https://go.microsoft.com/fwlink/?linkid=2096714 Register-PSSessionConfiguration,https://go.microsoft.com/fwlink/?linkid=2096793 Register-WmiEvent,https://go.microsoft.com/fwlink/?LinkID=135245 +Remove-Alias,https://go.microsoft.com/fwlink/?linkid=2097127 Remove-Computer,https://go.microsoft.com/fwlink/?LinkID=135246 Remove-Event,https://go.microsoft.com/fwlink/?linkid=2096715 Remove-EventLog,https://go.microsoft.com/fwlink/?LinkID=135248