From fd178ef61ae8e6290a02d65d7d3fc26b77029afb Mon Sep 17 00:00:00 2001 From: Arie Heinrich Date: Sat, 7 Sep 2024 22:26:24 +0200 Subject: [PATCH] Update PowerShell.json fix suppress-message-rule-parameter snippet --- snippets/PowerShell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/PowerShell.json b/snippets/PowerShell.json index 5ed99e184d..a4bf015d90 100644 --- a/snippets/PowerShell.json +++ b/snippets/PowerShell.json @@ -505,7 +505,7 @@ "description": "Suppress a PSScriptAnalyzer rule on a parameter. More: https://docs.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/overview?view=ps-modules#suppressing-rules", "body": [ "[Diagnostics.CodeAnalysis.SuppressMessageAttribute(<#Category#>'${1:PSUseDeclaredVarsMoreThanAssignments}',", - "\t<#ParameterName#>'${0:${TM_SELECTED_TEXT:ParamName}}", + "\t<#ParameterName#>'${0:${TM_SELECTED_TEXT:ParamName}}',", "\tJustification = '${0:${TM_SELECTED_TEXT:Reason for suppressing}}'", ")]" ]